From bf1106fc34e4c833f6f18b7b4c3ed74aece1035f Mon Sep 17 00:00:00 2001 From: Brymer Meneses <68867487+brymer-meneses@users.noreply.github.com> Date: Fri, 26 Jul 2024 00:51:31 +0800 Subject: [PATCH] fix: `clangd: -32001: invalid AST` (#4164) Ignore the `-march=*` in `compile_commands.json` which causes issues in Neovim on Apple M2. This fix is from this [comment](https://github.com/clangd/clangd/issues/1582#issuecomment-1500031372) --- .clangd | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .clangd diff --git a/.clangd b/.clangd new file mode 100644 index 000000000000..f6fab1b26e60 --- /dev/null +++ b/.clangd @@ -0,0 +1,7 @@ +# Part of the Carbon Language project, under the Apache License v2.0 with LLVM +# Exceptions. See /LICENSE for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception + +CompileFlags: + # Workaround for https://github.com/clangd/clangd/issues/1582 + Remove: [-march=*]