2019-05-28 12:52:16 +00:00
|
|
|
#
|
|
|
|
# http://clang.llvm.org/docs/ClangFormatStyleOptions.html
|
|
|
|
#
|
|
|
|
Language: Cpp
|
|
|
|
AccessModifierOffset: -4
|
|
|
|
AlignAfterOpenBracket: Align
|
|
|
|
AlignConsecutiveAssignments: true
|
|
|
|
AlignConsecutiveDeclarations: true
|
|
|
|
AlignEscapedNewlines: DontAlign
|
|
|
|
AlignOperands: true
|
|
|
|
AlignTrailingComments: true
|
|
|
|
AllowAllParametersOfDeclarationOnNextLine: true
|
|
|
|
AllowShortBlocksOnASingleLine: true
|
|
|
|
AllowShortCaseLabelsOnASingleLine: true
|
2019-05-28 13:18:11 +00:00
|
|
|
AllowShortFunctionsOnASingleLine: All
|
2019-05-28 12:52:16 +00:00
|
|
|
AllowShortIfStatementsOnASingleLine: true
|
|
|
|
AllowShortLoopsOnASingleLine: true
|
|
|
|
AlwaysBreakAfterDefinitionReturnType: None
|
|
|
|
AlwaysBreakAfterReturnType: None
|
|
|
|
AlwaysBreakBeforeMultilineStrings: false
|
2019-06-24 11:03:46 +00:00
|
|
|
AlwaysBreakTemplateDeclarations: false
|
2019-05-28 12:52:16 +00:00
|
|
|
BinPackArguments: false
|
|
|
|
BinPackParameters: false
|
|
|
|
BraceWrapping:
|
|
|
|
AfterClass: true
|
2019-05-28 13:29:06 +00:00
|
|
|
AfterControlStatement: false
|
2019-05-28 12:52:16 +00:00
|
|
|
AfterEnum: false
|
|
|
|
AfterFunction: true
|
|
|
|
AfterNamespace: false
|
|
|
|
AfterObjCDeclaration: false
|
|
|
|
AfterStruct: true
|
|
|
|
AfterUnion: false
|
|
|
|
AfterExternBlock: false
|
|
|
|
BeforeCatch: false
|
|
|
|
BeforeElse: false
|
|
|
|
IndentBraces: false
|
|
|
|
SplitEmptyFunction: false
|
|
|
|
SplitEmptyRecord: false
|
|
|
|
SplitEmptyNamespace: false
|
2019-06-24 11:03:46 +00:00
|
|
|
BreakBeforeBinaryOperators: None
|
2019-05-28 12:52:16 +00:00
|
|
|
BreakBeforeBraces: Custom
|
|
|
|
BreakBeforeInheritanceComma: false
|
|
|
|
BreakInheritanceList: BeforeColon
|
2019-06-24 11:03:46 +00:00
|
|
|
BreakBeforeTernaryOperators: false
|
2019-05-28 12:52:16 +00:00
|
|
|
BreakConstructorInitializersBeforeComma: false
|
|
|
|
BreakConstructorInitializers: BeforeComma
|
|
|
|
BreakAfterJavaFieldAnnotations: false
|
|
|
|
BreakStringLiterals: true
|
2019-06-11 10:40:07 +00:00
|
|
|
ColumnLimit: 78
|
2019-05-28 12:52:16 +00:00
|
|
|
CommentPragmas: '^ IWYU pragma:'
|
2019-06-24 11:03:46 +00:00
|
|
|
CompactNamespaces: true
|
2019-05-28 12:52:16 +00:00
|
|
|
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
|
|
|
ConstructorInitializerIndentWidth: 4
|
|
|
|
ContinuationIndentWidth: 4
|
|
|
|
Cpp11BracedListStyle: true
|
|
|
|
DerivePointerAlignment: false
|
|
|
|
DisableFormat: false
|
|
|
|
ExperimentalAutoDetectBinPacking: false
|
|
|
|
FixNamespaceComments: true
|
|
|
|
ForEachMacros:
|
|
|
|
- forever
|
|
|
|
- foreach
|
|
|
|
- Q_FOREACH
|
|
|
|
- BOOST_FOREACH
|
|
|
|
IncludeBlocks: Preserve
|
|
|
|
IncludeCategories:
|
|
|
|
- Regex: '^<Q.*'
|
|
|
|
Priority: 200
|
|
|
|
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
|
|
|
|
Priority: 3
|
|
|
|
- Regex: '.*'
|
|
|
|
Priority: 1
|
|
|
|
IncludeIsMainRegex: '(Test)?$'
|
|
|
|
IndentCaseLabels: false
|
|
|
|
IndentPPDirectives: None
|
|
|
|
IndentWidth: 4
|
|
|
|
IndentWrappedFunctionNames: false
|
|
|
|
JavaScriptQuotes: Leave
|
|
|
|
JavaScriptWrapImports: true
|
|
|
|
KeepLineBreaksForNonEmptyLines: false
|
|
|
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
|
|
|
MacroBlockBegin: ''
|
|
|
|
MacroBlockEnd: ''
|
|
|
|
MaxEmptyLinesToKeep: 1
|
|
|
|
NamespaceIndentation: None
|
|
|
|
ObjCBinPackProtocolList: Auto
|
|
|
|
ObjCBlockIndentWidth: 4
|
|
|
|
ObjCSpaceAfterProperty: false
|
|
|
|
ObjCSpaceBeforeProtocolList: true
|
|
|
|
PenaltyBreakAssignment: 150
|
|
|
|
PenaltyBreakBeforeFirstCallParameter: 300
|
|
|
|
PenaltyBreakComment: 500
|
|
|
|
PenaltyBreakFirstLessLess: 400
|
|
|
|
PenaltyBreakString: 600
|
|
|
|
PenaltyBreakTemplateDeclaration: 10
|
|
|
|
PenaltyExcessCharacter: 50
|
|
|
|
PenaltyReturnTypeOnItsOwnLine: 300
|
|
|
|
PointerAlignment: Right
|
|
|
|
ReflowComments: true
|
|
|
|
SortIncludes: false
|
|
|
|
SortUsingDeclarations: false
|
|
|
|
SpaceAfterCStyleCast: true
|
|
|
|
SpaceAfterTemplateKeyword: false
|
|
|
|
SpaceBeforeAssignmentOperators: true
|
|
|
|
SpaceBeforeCpp11BracedList: false
|
|
|
|
SpaceBeforeCtorInitializerColon: true
|
|
|
|
SpaceBeforeInheritanceColon: true
|
|
|
|
SpaceBeforeParens: ControlStatements
|
|
|
|
SpaceBeforeRangeBasedForLoopColon: true
|
|
|
|
SpaceInEmptyParentheses: false
|
|
|
|
SpacesBeforeTrailingComments: 1
|
|
|
|
SpacesInAngles: false
|
|
|
|
SpacesInContainerLiterals: false
|
|
|
|
SpacesInCStyleCastParentheses: false
|
|
|
|
SpacesInParentheses: false
|
|
|
|
SpacesInSquareBrackets: false
|
|
|
|
Standard: Cpp11
|
|
|
|
TabWidth: 4
|
|
|
|
UseTab: Never
|
|
|
|
|