Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Support for compile_commands.json #74

Open
jwatt opened this issue Dec 7, 2021 · 1 comment
Open

Support for compile_commands.json #74

jwatt opened this issue Dec 7, 2021 · 1 comment

Comments

@jwatt
Copy link

jwatt commented Dec 7, 2021

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? :-)

@farnasirim
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants