Skip to content
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 for iwyu.compile_commands #10

Merged
merged 5 commits into from
Jul 8, 2024

Conversation

helly25
Copy link
Owner

@helly25 helly25 commented Jul 7, 2024

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

… 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.
@helly25 helly25 force-pushed the feat/find_compile_commands_under_build_20240707 branch from c1a3f13 to bc65d47 Compare July 8, 2024 07:43
@helly25 helly25 requested a review from Fab-Cat July 8, 2024 07:58
…ng the following:

* `${workspaceFolder}/compile_commands.json`,
* `${workspaceFolder}/build/compile_commands.json`,
* `${fileWorkspaceFolder}/compile_commands.json`, and
* `${fileWorkspaceFolder}/build/compile_commands.json`.
@helly25 helly25 enabled auto-merge (squash) July 8, 2024 09:57
@helly25 helly25 merged commit ee678af into main Jul 8, 2024
1 check passed
@helly25 helly25 deleted the feat/find_compile_commands_under_build_20240707 branch July 8, 2024 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve finding compile_commnands.json.
2 participants