vscode-clang-tidy icon indicating copy to clipboard operation
vscode-clang-tidy copied to clipboard

Support for compile_commands.json

Open jwatt opened this issue 3 years ago • 1 comments

The clangd extension supports specifying a compile_commands.json file which specifies the compiler arguments that are used to build each source file. The system that vscode-clang-tidy uses of requiring the user to specify a single set of arguments for the whole project doesn't work for projects where the arguments vary from file to file, or directory to directory at least. Could compile_commands.json support be added at some point? :-)

jwatt avatar Dec 07 '21 15:12 jwatt

Seems like this is already supported: #40 I could verify using a full absolute path, couldn't get it to work with a path containing variables like ${workspaceFolder} or a relative path.

farnasirim avatar Feb 13 '22 00:02 farnasirim