123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- #
- # 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
- AllowShortFunctionsOnASingleLine: All
- AllowShortIfStatementsOnASingleLine: false
- AllowShortLoopsOnASingleLine: true
- AlwaysBreakAfterDefinitionReturnType: None
- AlwaysBreakAfterReturnType: None
- AlwaysBreakBeforeMultilineStrings: false
- AlwaysBreakTemplateDeclarations: false
- BinPackArguments: true
- BinPackParameters: false
- BraceWrapping:
- AfterClass: true
- AfterControlStatement: false
- 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
- BreakBeforeBinaryOperators: None
- BreakBeforeBraces: Custom
- BreakBeforeInheritanceComma: false
- BreakInheritanceList: BeforeColon
- BreakBeforeTernaryOperators: false
- BreakConstructorInitializersBeforeComma: false
- BreakConstructorInitializers: BeforeComma
- BreakAfterJavaFieldAnnotations: false
- BreakStringLiterals: true
- ColumnLimit: 118
- CommentPragmas: '^ IWYU pragma:'
- CompactNamespaces: true
- 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
|