feat: add cpp language settings
This commit is contained in:
@@ -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
|
||||
...
|
||||
@@ -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
@@ -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
|
||||
...
|
||||
Reference in New Issue
Block a user