feat: add cpp language settings

This commit is contained in:
2026-02-26 02:22:30 +01:00
parent 918a7ea383
commit 9c8e58bc7c
3 changed files with 55 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: WebKit
BreakConstructorInitializers: AfterColon
BreakInheritanceList: AfterColon
IncludeIsMainRegex: '(_test)?$'
LineEnding: LF
PackConstructorInitializers: Never
PenaltyBreakAssignment: 100
PointerAlignment: Left
QualifierAlignment: Left
SeparateDefinitionBlocks: Always
Standard: Latest
...
+20
View File
@@ -0,0 +1,20 @@
---
Checks: >
bugprone-*,
cert-*,
clang-analyzer-*,
clang-diagnostic-*,
concurrency-*,
cppcoreguidelines-*,
hicpp-*,
misc-*,
modernize-*,
performance-*,
portability-*,
readability-*,
-bugprone-easily-swappable-parameters,
-cppcoreguidelines-pro-type-reinterpret-cast,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-pro-bounds-constant-array-index
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
...