feat: add language specific project configs
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
---
|
||||
BasedOnStyle: LLVM
|
||||
AlignAfterOpenBracket: BlockIndent
|
||||
AlignArrayOfStructures: Left
|
||||
AlignEscapedNewlines: Right
|
||||
AllowShortFunctionsOnASingleLine: None
|
||||
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
|
||||
BinPackArguments: false
|
||||
BinPackParameters: false
|
||||
BreakBeforeBraces: WebKit
|
||||
BreakConstructorInitializers: AfterColon
|
||||
BreakInheritanceList: AfterColon
|
||||
IncludeBlocks: Regroup
|
||||
IncludeIsMainRegex: '(_test)?$'
|
||||
IndentWidth: 4
|
||||
LineEnding: LF
|
||||
PackConstructorInitializers: Never
|
||||
PenaltyBreakAssignment: 100
|
||||
PointerAlignment: Left
|
||||
QualifierAlignment: Right
|
||||
Standard: Latest
|
||||
WhitespaceSensitiveMacros:
|
||||
- STRINGIZE
|
||||
- STRINGIZE_VALUE
|
||||
...
|
||||
@@ -0,0 +1,36 @@
|
||||
---
|
||||
Checks: >
|
||||
bugprone-*,
|
||||
cert-*,
|
||||
clang-analyzer-*,
|
||||
clang-diagnostic-*,
|
||||
concurrency-*,
|
||||
cppcoreguidelines-*,
|
||||
misc-*,
|
||||
modernize-*,
|
||||
performance-*,
|
||||
portability-*,
|
||||
readability-*,
|
||||
-bugprone-easily-swappable-parameters,
|
||||
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
|
||||
-clang-analyzer-security.insecureAPI.strcpy,
|
||||
-readability-braces-around-statements,
|
||||
-readability-identifier-length,
|
||||
-readability-implicit-bool-conversion,
|
||||
-misc-no-recursion
|
||||
|
||||
CheckOptions:
|
||||
- key: readability-identifier-naming.VariableCase
|
||||
value: lower_case
|
||||
- key: readability-identifier-naming.FunctionCase
|
||||
value: lower_case
|
||||
- key: readability-identifier-naming.TypeCase
|
||||
value: lower_case
|
||||
- key: readability-identifier-naming.ConstantCase
|
||||
value: UPPER_CASE
|
||||
- key: readability-identifier-naming.MacroCase
|
||||
value: UPPER_CASE
|
||||
- key: readability-identifier-naming.EnumConstantCase
|
||||
value: UPPER_CASE
|
||||
|
||||
FormatStyle: file
|
||||
@@ -0,0 +1,23 @@
|
||||
---
|
||||
Diagnostics:
|
||||
UnusedIncludes: Strict
|
||||
MissingIncludes: Strict
|
||||
|
||||
CompileFlags:
|
||||
Add: [-xc]
|
||||
Remove: [-fanalyzer]
|
||||
|
||||
Completion:
|
||||
AllScopes: true
|
||||
|
||||
InlayHints:
|
||||
Enabled: No
|
||||
|
||||
SemanticTokens:
|
||||
DisabledKinds: []
|
||||
DisabledModifiers: []
|
||||
|
||||
# Will possibly be supported in clangd 22
|
||||
Documentation:
|
||||
CommentFormat: Doxygen
|
||||
...
|
||||
@@ -69,7 +69,11 @@ ignore = [
|
||||
"D301",
|
||||
"D413",
|
||||
"TC006",
|
||||
"COM812"
|
||||
"COM812",
|
||||
"PLR0913",
|
||||
"PLR0917",
|
||||
"PYI011",
|
||||
"UP031"
|
||||
]
|
||||
|
||||
[tool.pyrefly]
|
||||
Reference in New Issue
Block a user