feat: add language specific project configs

This commit is contained in:
2025-09-06 01:34:46 +02:00
parent 4200a717d9
commit dba3dd424d
5 changed files with 89 additions and 1 deletions
+25
View File
@@ -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
...
+36
View File
@@ -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
+23
View 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
...
View File
+5 -1
View File
@@ -69,7 +69,11 @@ ignore = [
"D301", "D301",
"D413", "D413",
"TC006", "TC006",
"COM812" "COM812",
"PLR0913",
"PLR0917",
"PYI011",
"UP031"
] ]
[tool.pyrefly] [tool.pyrefly]