mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Enable few slow clang-tidy checks for clangd
In #47424 the readability-identifier-naming had been disabled for clang-tidy builds, but the code base is already uses this notations, so at least, let's enable it for clangd, so that developers who are using editor/IDE with clangd will be warned. FWIW clangd does not think that this check is slow [1], but I guess this file hadn't been updated for quite a while. [1]: https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/clangd/TidyFastChecks.inc Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
parent
944100c4b1
commit
87b5ab2fcd
16
.clangd
Normal file
16
.clangd
Normal file
@ -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,
|
||||||
|
]
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -129,7 +129,6 @@ website/package-lock.json
|
|||||||
/.ccls-cache
|
/.ccls-cache
|
||||||
|
|
||||||
# clangd cache
|
# clangd cache
|
||||||
/.clangd
|
|
||||||
/.cache
|
/.cache
|
||||||
|
|
||||||
/compile_commands.json
|
/compile_commands.json
|
||||||
|
Loading…
Reference in New Issue
Block a user