Configuring team's compile commands location #12584
Unanswered
SebastianBilek
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there, I'm looking for team-friendly way to give cpptools the location of
compile_commands.json, given that our compile commands is located in the git ignored./worksubdirectory of our projects.During a dev call we explored the following options:
C_Cpp.default.compileCommandsto./work/compile_commands.jsonworks great. However, devs felt that the solution is not scalable or easy to automate as a all devs have to manually configure the option and we already had a dev fail to configure it during the call 😆compileCommandssetting inside the local.vscode/c_cpp_properties.jsonfile frustrated a few people during the call as they didn't want to have to share any vscode configurations and were concerned that just adding the.vscodesubdirectory to the repos would lead to a creep of configuration options.compile_commands.jsoninto./buildand although this isn't supported by cpptools the idea was very popular during the call as it wouldn't be adding anything to the root of the repos, wouldn't intefere with people's vscode configuration, might support more editors (that use clangd), and is automatic (like usingc_cpp_properties.json).Which of these options are recommended? Are there other strategies we should consider? Also, is there a possibility for cpptools to support default search directories for compile commands?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions