| 1 |
# https://releases.llvm.org/9.0.0/tools/clang/docs/ClangFormatStyleOptions.html |
| 2 |
|
| 3 |
--- |
| 4 |
Language: Cpp |
| 5 |
BasedOnStyle: Google |
| 6 |
AccessModifierOffset: -2 |
| 7 |
AlignAfterOpenBracket: AlwaysBreak |
| 8 |
AlignEscapedNewlines: Right |
| 9 |
AlignOperands: true |
| 10 |
AlignTrailingComments: true |
| 11 |
AllowAllParametersOfDeclarationOnNextLine: true |
| 12 |
AllowShortBlocksOnASingleLine: false |
| 13 |
AllowShortCaseLabelsOnASingleLine: false |
| 14 |
AllowShortFunctionsOnASingleLine: Empty |
| 15 |
AllowShortIfStatementsOnASingleLine: false |
| 16 |
AllowShortLambdasOnASingleLine: Inline |
| 17 |
AllowShortLoopsOnASingleLine: false |
| 18 |
AlwaysBreakBeforeMultilineStrings: true |
| 19 |
AlwaysBreakTemplateDeclarations: true |
| 20 |
BinPackArguments: false |
| 21 |
BinPackParameters: false |
| 22 |
BraceWrapping: |
| 23 |
AfterClass: true |
| 24 |
AfterControlStatement: true |
| 25 |
AfterEnum: true |
| 26 |
AfterFunction: true |
| 27 |
AfterNamespace: false |
| 28 |
AfterObjCDeclaration: true |
| 29 |
AfterStruct: true |
| 30 |
AfterUnion: true |
| 31 |
AfterExternBlock: false |
| 32 |
BeforeCatch: true |
| 33 |
BeforeElse: true |
| 34 |
IndentBraces: false |
| 35 |
SplitEmptyFunction: true |
| 36 |
SplitEmptyRecord: true |
| 37 |
SplitEmptyNamespace: true |
| 38 |
BreakBeforeBinaryOperators: All |
| 39 |
BreakBeforeBraces: Custom |
| 40 |
BreakBeforeTernaryOperators: true |
| 41 |
BreakConstructorInitializersBeforeComma: false |
| 42 |
ColumnLimit: 80 |
| 43 |
CommentPragmas: '' |
| 44 |
ConstructorInitializerAllOnOneLineOrOnePerLine: true |
| 45 |
ConstructorInitializerIndentWidth: 2 |
| 46 |
ContinuationIndentWidth: 4 |
| 47 |
Cpp11BracedListStyle: true |
| 48 |
DerivePointerAlignment: false |
| 49 |
DisableFormat: false |
| 50 |
ExperimentalAutoDetectBinPacking: false |
| 51 |
FixNamespaceComments: true |
| 52 |
ForEachMacros: [ foreach, Q_FOREACH ] |
| 53 |
# Sort headers by main include file (implicit priority 0), |
| 54 |
# then project and private includes, then system headers |
| 55 |
IncludeCategories: |
| 56 |
- Regex: '^<([a-z|_]+)>' # standard library headers |
| 57 |
Priority: 1 |
| 58 |
- Regex: '^(<[A-z]+)' # dependency headers |
| 59 |
Priority: 2 |
| 60 |
- Regex: '^(<|")dart/' # DART headers |
| 61 |
Priority: 3 |
| 62 |
- Regex: '^".*' # headers relative to this project |
| 63 |
Priority: 4 |
| 64 |
IndentCaseLabels: true |
| 65 |
IndentPPDirectives: BeforeHash |
| 66 |
IndentFunctionDeclarationAfterType: false |
| 67 |
IndentWidth: 2 |
| 68 |
IndentWrappedFunctionNames: false |
| 69 |
KeepEmptyLinesAtTheStartOfBlocks: false |
| 70 |
MacroBlockBegin: '' |
| 71 |
MacroBlockEnd: '' |
| 72 |
MaxEmptyLinesToKeep: 1 |
| 73 |
NamespaceIndentation: None |
| 74 |
ObjCBlockIndentWidth: 2 |
| 75 |
ObjCSpaceAfterProperty: false |
| 76 |
PenaltyBreakBeforeFirstCallParameter: 1 |
| 77 |
PenaltyBreakComment: 300 |
| 78 |
PenaltyBreakFirstLessLess: 120 |
| 79 |
PenaltyBreakString: 1000 |
| 80 |
PenaltyExcessCharacter: 1000000 |
| 81 |
PenaltyReturnTypeOnItsOwnLine: 200 |
| 82 |
PointerAlignment: Left |
| 83 |
ReflowComments: true |
| 84 |
SortIncludes: true |
| 85 |
SpaceAfterCStyleCast: false |
| 86 |
SpaceBeforeAssignmentOperators: true |
| 87 |
SpaceBeforeParens: ControlStatements |
| 88 |
SpaceInEmptyParentheses: false |
| 89 |
SpacesBeforeTrailingComments: 1 |
| 90 |
SpacesInAngles: false |
| 91 |
SpacesInContainerLiterals: true |
| 92 |
SpacesInCStyleCastParentheses: false |
| 93 |
SpacesInParentheses: false |
| 94 |
SpacesInSquareBrackets: false |
| 95 |
Standard: Auto |
| 96 |
TabWidth: 2 |
| 97 |
UseTab: Never |
| 98 |
... |