-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update default compile_commands.json path #5
base: main
Are you sure you want to change the base?
Conversation
Changing the /XXX/ to match the actual definition as stated is a good idea. However this is a breaking change for some that install defaults. The current one works for bazel setups. Maybe this needs to be identified. If there is an indication of Bazel, then use root, otherwise build subdirectory. Bazel can be identified by the presence of file of the following list: |
Signed-off-by: Greg Thornton <[email protected]>
Signed-off-by: Greg Thornton <[email protected]>
554aeb5
to
2af4937
Compare
… is not found, then the extension will also try `${workspaceFolder}/build/compile_commands.json`. This should address #5 in slightly better way as it supports both common places.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
… is not found, then the extension will also try `${workspaceFolder}/build/compile_commands.json`. This should address #5 in slightly better way as it supports both common places.
If `iwyu.compile_commands` is set to the default `auto`, then the extension will try: - `${workspaceFolder}/compile_commands.json`, - `${workspaceFolder}/build/compile_commands.json`, - `${fileWorkspaceFolder}/compile_commands.json`, and - `${fileWorkspaceFolder}/build/compile_commands.json`. This should address #5 in slightly better way as it supports the common places. This fixes #11
This PR should no longer be necessary as of version 0.0.16. |
This default
compile_commands.json
path reflects the default from the popularCMake Tools
extension and is probably appropriate for >90% of all configurations.