Skip to content

Commit

Permalink
[nfc] clangd tweaks (#2882)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikea authored Oct 9, 2024
1 parent 5bc9bf2 commit caa0e4e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@
"BAZEL_VC" : "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC",
"BAZEL_WINSDK_FULL_VERSION" : "10.0.22000.0",
},
"clangd.arguments": [
"--background-index",
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}/",
"--query-driver=**"
],
}
3 changes: 2 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ alias st := stream-test
default:
@just --list

pwd := `pwd`
clang_version := "18"

prepare:
cargo install gen-compile-commands

compile-commands:
rm -f compile_commands.json | gen-compile-commands --root . --compile-flags compile_flags.txt --out compile_commands.json --src-dir ./src
rm -f compile_commands.json | gen-compile-commands --root {{pwd}} --compile-flags compile_flags.txt --out compile_commands.json --src-dir {{pwd}}/src

clean:
rm -f compile_commands.json
Expand Down

0 comments on commit caa0e4e

Please sign in to comment.