From e88d487f6557f876df20b8c661243f33b0281076 Mon Sep 17 00:00:00 2001 From: Gary Miguel Date: Mon, 20 Nov 2023 04:41:47 +0000 Subject: [PATCH] fix clangd instructions work around https://github.com/hedronvision/bazel-compile-commands-extractor/issues/140 Change-Id: I86a23ad7ffc699773a9219a3c766e22df0946479 --- .clangd | 1 - README.md | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.clangd b/.clangd index 07cd805..f7b36ff 100644 --- a/.clangd +++ b/.clangd @@ -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] - diff --git a/README.md b/README.md index 14afcf9..921a0ee 100644 --- a/README.md +++ b/README.md @@ -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/).