2017-12-21 07:45:38 +08:00
|
|
|
---
|
|
|
|
Language: Cpp
|
|
|
|
# BasedOnStyle: LLVM
|
|
|
|
AccessModifierOffset: -2
|
|
|
|
AlignAfterOpenBracket: Align
|
|
|
|
AlignConsecutiveAssignments: false
|
|
|
|
AlignConsecutiveDeclarations: false
|
|
|
|
AlignEscapedNewlinesLeft: false
|
|
|
|
AlignOperands: true
|
|
|
|
AlignTrailingComments: true
|
|
|
|
AllowAllParametersOfDeclarationOnNextLine: true
|
|
|
|
AllowShortBlocksOnASingleLine: false
|
|
|
|
AllowShortCaseLabelsOnASingleLine: false
|
|
|
|
AllowShortFunctionsOnASingleLine: All
|
|
|
|
AllowShortIfStatementsOnASingleLine: false
|
|
|
|
AllowShortLoopsOnASingleLine: false
|
|
|
|
AlwaysBreakAfterDefinitionReturnType: None
|
|
|
|
AlwaysBreakAfterReturnType: None
|
|
|
|
AlwaysBreakBeforeMultilineStrings: false
|
|
|
|
AlwaysBreakTemplateDeclarations: false
|
|
|
|
BinPackArguments: true
|
|
|
|
BinPackParameters: true
|
|
|
|
BraceWrapping:
|
|
|
|
AfterClass: false
|
|
|
|
AfterControlStatement: false
|
|
|
|
AfterEnum: false
|
|
|
|
AfterFunction: false
|
|
|
|
AfterNamespace: false
|
|
|
|
AfterObjCDeclaration: false
|
|
|
|
AfterStruct: false
|
|
|
|
AfterUnion: false
|
|
|
|
BeforeCatch: false
|
|
|
|
BeforeElse: false
|
|
|
|
IndentBraces: false
|
|
|
|
BreakBeforeBinaryOperators: false
|
|
|
|
BreakBeforeBraces: Attach
|
|
|
|
BreakBeforeTernaryOperators: true
|
|
|
|
BreakConstructorInitializersBeforeComma: false
|
|
|
|
# clang-format > v3.8.0: BreakAfterJavaFieldAnnotations: false
|
|
|
|
# clang-format > v3.8.0: BreakStringLiterals: true
|
2018-08-29 22:14:46 +08:00
|
|
|
ColumnLimit: 0
|
2017-12-21 07:45:38 +08:00
|
|
|
CommentPragmas: '^ IWYU pragma:'
|
|
|
|
ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
|
|
|
ConstructorInitializerIndentWidth: 4
|
|
|
|
ContinuationIndentWidth: 4
|
|
|
|
Cpp11BracedListStyle: true
|
|
|
|
DerivePointerAlignment: false
|
|
|
|
DisableFormat: false
|
|
|
|
ExperimentalAutoDetectBinPacking: false
|
|
|
|
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
|
2019-02-27 18:39:32 +08:00
|
|
|
IncludeBlocks: Regroup
|
|
|
|
IncludeCategories:
|
2020-02-23 06:25:46 +08:00
|
|
|
- Regex: '^.(shared)/'
|
2019-02-27 18:39:32 +08:00
|
|
|
Priority: 1
|
2020-02-23 06:25:46 +08:00
|
|
|
- Regex: '^.(documentation|manifests|offline_compiler|opencl|scripts)/'
|
|
|
|
Priority: 2
|
2020-03-06 18:09:57 +08:00
|
|
|
- Regex: '^.(level_zero)/'
|
|
|
|
Priority: 3
|
2019-02-27 18:39:32 +08:00
|
|
|
- Regex: '(d3d9types|d3d10_1)\.h'
|
|
|
|
Priority: 4
|
|
|
|
- Regex: '(gfxEscape|windows)\.h'
|
|
|
|
Priority: 5
|
|
|
|
- Regex: '^.(third_party|llvm|llvm-c|clang|clang-c|gtest|isl|json)/'
|
|
|
|
Priority: 5
|
|
|
|
- Regex: '^.(gmock|cl|gl|d3d)'
|
|
|
|
Priority: 5
|
|
|
|
- Regex: '^<.*>$'
|
|
|
|
Priority: 10
|
|
|
|
- Regex: '.*'
|
|
|
|
Priority: 5
|
2017-12-21 07:45:38 +08:00
|
|
|
IndentCaseLabels: false
|
|
|
|
IndentWidth: 4
|
|
|
|
IndentWrappedFunctionNames: false
|
|
|
|
KeepEmptyLinesAtTheStartOfBlocks: true
|
|
|
|
MacroBlockBegin: ''
|
|
|
|
MacroBlockEnd: ''
|
|
|
|
MaxEmptyLinesToKeep: 1
|
|
|
|
NamespaceIndentation: None
|
|
|
|
ObjCBlockIndentWidth: 2
|
|
|
|
ObjCSpaceAfterProperty: false
|
|
|
|
ObjCSpaceBeforeProtocolList: true
|
|
|
|
PenaltyBreakBeforeFirstCallParameter: 19
|
|
|
|
PenaltyBreakComment: 300
|
|
|
|
PenaltyBreakFirstLessLess: 120
|
|
|
|
PenaltyBreakString: 1000
|
|
|
|
PenaltyExcessCharacter: 1000000
|
|
|
|
PenaltyReturnTypeOnItsOwnLine: 60
|
|
|
|
PointerAlignment: Right
|
|
|
|
ReflowComments: true
|
2020-02-24 17:22:30 +08:00
|
|
|
SortIncludes: true
|
2017-12-21 07:45:38 +08:00
|
|
|
SpaceAfterCStyleCast: false
|
|
|
|
SpaceBeforeAssignmentOperators: true
|
|
|
|
SpaceBeforeParens: ControlStatements
|
|
|
|
SpaceInEmptyParentheses: false
|
|
|
|
SpacesBeforeTrailingComments: 1
|
|
|
|
SpacesInAngles: false
|
|
|
|
SpacesInContainerLiterals: true
|
|
|
|
SpacesInCStyleCastParentheses: false
|
|
|
|
SpacesInParentheses: false
|
|
|
|
SpacesInSquareBrackets: false
|
|
|
|
Standard: Cpp11
|
|
|
|
TabWidth: 8
|
|
|
|
UseTab: Never
|
|
|
|
...
|
|
|
|
|