build: add clang tooling config

This commit is contained in:
2026-06-13 05:18:47 +02:00
parent 2f8b306991
commit 5e54d69ac7
3 changed files with 60 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
---
Language: Cpp
BasedOnStyle: LLVM
AlignAfterOpenBracket: BlockIndent
AlignArrayOfStructures: Left
AllowShortFunctionsOnASingleLine: None
BinPackArguments: false
BinPackParameters: false
BreakBeforeBraces: Attach
BreakConstructorInitializers: AfterColon
BreakInheritanceList: AfterColon
IncludeIsMainRegex: '(_test)?$'
LineEnding: LF
PackConstructorInitializers: Never
PenaltyBreakAssignment: 100
PointerAlignment: Left
QualifierAlignment: Left
SeparateDefinitionBlocks: Always
Standard: Latest
...
+25
View File
@@ -0,0 +1,25 @@
---
Checks: >
bugprone-*,
cert-*,
clang-analyzer-*,
clang-diagnostic-*,
concurrency-*,
cppcoreguidelines-*,
hicpp-*,
misc-*,
modernize-*,
performance-*,
portability-*,
readability-*,
-bugprone-easily-swappable-parameters,
-clang-analyzer-webkit.*,
-cppcoreguidelines-pro-type-reinterpret-cast,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-pro-bounds-constant-array-index,
-modernize-use-trailing-return-type
ExcludeHeaderFilterRegex: '^/usr/.*'
SystemHeaders: false
FormatStyle: file
+15
View File
@@ -0,0 +1,15 @@
---
Diagnostics:
UnusedIncludes: Strict
MissingIncludes: Strict
Completion:
AllScopes: true
InlayHints:
Enabled: No
# Will possibly be supported in clangd 22
Documentation:
CommentFormat: Doxygen
...