Skip to content

Commit

Permalink
fix clangd instructions
Browse files Browse the repository at this point in the history
work around hedronvision/bazel-compile-commands-extractor#140

Change-Id: I86a23ad7ffc699773a9219a3c766e22df0946479
  • Loading branch information
garymm authored and oliverlee committed Nov 20, 2023
1 parent 3c53fa6 commit e88d487
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .clangd
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ CompileFlags:
# Specifying non-existent include paths on other platforms doesn't cause issues
# (e.g. mentioning linux-gnu works on MacOS).
Add: [-nostdinc++, -isystem, external/llvm_toolchain_files/include/x86_64-unknown-linux-gnu/c++/v1, -isystem, external/llvm_toolchain_files/include/c++/v1]

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Install the recommended extensions. See .vscode/extensions.json.
Create a compilation database:

```sh
bazel build //... && bazel run @hedron_compile_commands//:refresh_all
bazel run @hedron_compile_commands//:refresh_all && bazel build //...
```

Then configure [clangd](https://clangd.llvm.org/).
Expand Down

0 comments on commit e88d487

Please sign in to comment.