kima2/.clang-format

183 lines
5 KiB
Text
Raw Permalink Normal View History

2022-07-07 15:14:30 +02:00
---
2018-07-09 13:01:25 +02:00
Language: Cpp
# BasedOnStyle: LLVM
2022-07-07 15:14:30 +02:00
AccessModifierOffset: -4
2018-07-09 13:01:25 +02:00
AlignAfterOpenBracket: Align
2022-07-07 15:14:30 +02:00
AlignArrayOfStructures: None
AlignConsecutiveMacros: None
AlignConsecutiveAssignments: None
AlignConsecutiveBitFields: None
AlignConsecutiveDeclarations: None
2018-07-09 13:01:25 +02:00
AlignEscapedNewlines: Right
2022-07-07 15:14:30 +02:00
AlignOperands: Align
2018-07-09 13:01:25 +02:00
AlignTrailingComments: true
2022-07-07 15:14:30 +02:00
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
2018-07-09 13:01:25 +02:00
AllowAllParametersOfDeclarationOnNextLine: true
2022-07-07 15:14:30 +02:00
AllowShortEnumsOnASingleLine: true
AllowShortBlocksOnASingleLine: Never
2018-07-09 13:01:25 +02:00
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
2022-07-07 15:14:30 +02:00
AllowShortLambdasOnASingleLine: All
AllowShortIfStatementsOnASingleLine: Never
2018-07-09 13:01:25 +02:00
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
2022-07-07 15:14:30 +02:00
AlwaysBreakTemplateDeclarations: MultiLine
AttributeMacros:
- __capability
2018-07-09 13:01:25 +02:00
BinPackArguments: true
BinPackParameters: true
2022-07-07 15:14:30 +02:00
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: Never
2018-07-09 13:01:25 +02:00
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
2022-07-07 15:14:30 +02:00
BeforeLambdaBody: false
BeforeWhile: false
2018-07-09 13:01:25 +02:00
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
2022-07-07 15:14:30 +02:00
BreakBeforeConceptDeclarations: true
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterFunction: true
AfterNamespace: true
2018-07-09 13:01:25 +02:00
BreakBeforeInheritanceComma: false
2022-07-07 15:14:30 +02:00
BreakInheritanceList: BeforeColon
2018-07-09 13:01:25 +02:00
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 100
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
2022-07-07 15:14:30 +02:00
DeriveLineEnding: true
2018-07-09 13:01:25 +02:00
DerivePointerAlignment: false
DisableFormat: false
2022-07-07 15:14:30 +02:00
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: LogicalBlock
2018-07-09 13:01:25 +02:00
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
2022-07-07 15:14:30 +02:00
ForEachMacros:
2018-07-09 13:01:25 +02:00
- foreach
- Q_FOREACH
- BOOST_FOREACH
2022-07-07 15:14:30 +02:00
IfMacros:
- KJ_IF_MAYBE
2018-07-09 13:01:25 +02:00
IncludeBlocks: Preserve
2022-07-07 15:14:30 +02:00
IncludeCategories:
2018-07-09 13:01:25 +02:00
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
2022-07-07 15:14:30 +02:00
SortPriority: 0
CaseSensitive: false
2018-07-09 13:01:25 +02:00
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
Priority: 3
2022-07-07 15:14:30 +02:00
SortPriority: 0
CaseSensitive: false
2018-07-09 13:01:25 +02:00
- Regex: '.*'
Priority: 1
2022-07-07 15:14:30 +02:00
SortPriority: 0
CaseSensitive: false
2018-07-09 13:01:25 +02:00
IncludeIsMainRegex: '(Test)?$'
2022-07-07 15:14:30 +02:00
IncludeIsMainSourceRegex: ''
IndentAccessModifiers: false
2018-07-09 13:01:25 +02:00
IndentCaseLabels: false
2022-07-07 15:14:30 +02:00
IndentCaseBlocks: false
IndentGotoLabels: true
2018-07-09 13:01:25 +02:00
IndentPPDirectives: None
2022-07-07 15:14:30 +02:00
IndentExternBlock: AfterExternBlock
IndentRequires: false
2018-07-09 13:01:25 +02:00
IndentWidth: 4
IndentWrappedFunctionNames: false
2022-07-07 15:14:30 +02:00
InsertTrailingCommas: None
2018-07-09 13:01:25 +02:00
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
2022-07-07 15:14:30 +02:00
LambdaBodyIndentation: Signature
2018-07-09 13:01:25 +02:00
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
2022-07-07 15:14:30 +02:00
ObjCBinPackProtocolList: Auto
2018-07-09 13:01:25 +02:00
ObjCBlockIndentWidth: 2
2022-07-07 15:14:30 +02:00
ObjCBreakBeforeNestedBlockParam: true
2018-07-09 13:01:25 +02:00
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
2022-07-07 15:14:30 +02:00
PenaltyBreakTemplateDeclaration: 10
2018-07-09 13:01:25 +02:00
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
2022-07-07 15:14:30 +02:00
PenaltyIndentedWhitespace: 0
PointerAlignment: Right
PPIndentWidth: -1
ReferenceAlignment: Pointer
2018-07-09 13:01:25 +02:00
ReflowComments: true
2022-07-07 15:14:30 +02:00
ShortNamespaceLines: 1
SortIncludes: CaseSensitive
SortJavaStaticImport: Before
2018-07-09 13:01:25 +02:00
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
2022-07-07 15:14:30 +02:00
SpaceAfterLogicalNot: false
2018-07-09 13:01:25 +02:00
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
2022-07-07 15:14:30 +02:00
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
2018-07-09 13:01:25 +02:00
SpaceBeforeParens: ControlStatements
2022-07-07 15:14:30 +02:00
SpaceAroundPointerQualifiers: Default
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyBlock: false
2018-07-09 13:01:25 +02:00
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
2022-07-07 15:14:30 +02:00
SpacesInAngles: Never
SpacesInConditionalStatement: false
2018-07-09 13:01:25 +02:00
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
2022-07-07 15:14:30 +02:00
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: -1
2018-07-09 13:01:25 +02:00
SpacesInParentheses: false
SpacesInSquareBrackets: false
2022-07-07 15:14:30 +02:00
SpaceBeforeSquareBrackets: false
BitFieldColonSpacing: Both
Standard: Latest
StatementAttributeLikeMacros:
- Q_EMIT
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
2018-07-09 13:01:25 +02:00
TabWidth: 8
2022-07-07 15:14:30 +02:00
UseCRLF: false
2018-07-09 13:01:25 +02:00
UseTab: Never
2022-07-07 15:14:30 +02:00
WhitespaceSensitiveMacros:
- STRINGIZE
- PP_STRINGIZE
- BOOST_PP_STRINGIZE
- NS_SWIFT_NAME
- CF_SWIFT_NAME
...
2018-07-09 13:01:25 +02:00