Question about: How to configure coretly the VSC and launch.json for clang?

Hello,

I put post on https://stackoverflow.com/questions/55543841/how-to-configure-coretly-the-vsc-and-launch-json-for-clang

How to configure correctly the VSC and launch.json for clang?

There is other post that not solving problem

https://stackoverflow.com/questions/51885784/how-to-setup-vs-code-for-c-with-clangd-support

https://stackoverflow.com/questions/51402740/visual-studio-code-clangd-extension-configuration

https://github.com/llvm-vs-code-extensions/vscode-clangd - there is info about as DEPRECATED, so I’m not sure

https://github.com/llvm-mirror/clang-tools-extra - which is actual

Due the unclear situation

The extension is published under llvm-vs-code-extensions account, which is currently maintained by clangd developers. If you want to make a new release, please contact cfe-dev@lists.llvm.org.

Regards

Robert

+via clangd-dev

BTW, we are working on a vscode extension in CDT that will help manage clangd and the compile_commands.json files for various style of projects, with particular focus on gcc cross compilation for embedded targets. Hopefully that will make things easier when it’s ready. Early days tho.

https://github.com/eclipse-cdt/cdt-vscode

Doug.

If i understand right, you’re asking about using VSCode to build your project using clang and possibly run it.

I’m not a vscode user myself so i can’t really advise. However you should know that clangd is not the same as clang: it’s for editing (code completion, diagnostics, go-to-definition etc) but doesn’t build/run.
That’s why the questions/addons you linked don’t seem relevant, they’re for clangd rather than clang.

Sorry if this is confusing.

To build/run, you may want a plug-in that integrates with your build system (cmake etc) rather than clang itself.