diff --git a/.clangd b/.clangd new file mode 100644 index 00000000000..ad471db8d8b --- /dev/null +++ b/.clangd @@ -0,0 +1,16 @@ +Diagnostics: + # clangd does parse .clang-tidy, but some checks are too slow to run in + # clang-tidy build, so let's enable them explicitly for clangd at least. + ClangTidy: + # The following checks had been disabled due to slowliness with C++23, + # for more details see [1]. + # + # [1]: https://github.com/llvm/llvm-project/issues/61418 + # + # But the code base had been written in a style that had been checked + # by this check, so at least, let's enable it for clangd. + Add: [ + # configured in .clang-tidy + readability-identifier-naming, + bugprone-reserved-identifier, + ] diff --git a/.gitignore b/.gitignore index 14b860244c2..a04c60d5ca3 100644 --- a/.gitignore +++ b/.gitignore @@ -129,7 +129,6 @@ website/package-lock.json /.ccls-cache # clangd cache -/.clangd /.cache /compile_commands.json