mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
Finally clangd has an option for this, I've tested that clangd from upstream and it works like a charm. Note, that this config is compatible with older clangd as well. Signed-off-by: Azat Khuzhin <[email protected]>
20 lines
776 B
YAML
20 lines
776 B
YAML
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,
|
|
]
|
|
# Require LLVM 20 (https://github.com/llvm/llvm-project/pull/67749)
|
|
Style:
|
|
AngledHeaders: [".*"]
|