updated clang-format

This commit is contained in:
Phuntsok Drak-pa 2019-04-27 16:11:21 +02:00
parent 2bd701e6a6
commit bc9dcf4142

View File

@ -1,41 +1,58 @@
--- ---
BasedOnStyle: Chromium AlignAfterOpenBracket: Align
AlignEscapedNewlinesLeft: 'true' AlignConsecutiveAssignments: 'true'
AlignEscapedNewlines: Left
AlignOperands: 'true'
AlignTrailingComments: 'true' AlignTrailingComments: 'true'
AllowAllParametersOfDeclarationOnNextLine: 'true'
AllowShortBlocksOnASingleLine: 'true' AllowShortBlocksOnASingleLine: 'true'
AllowShortCaseLabelsOnASingleLine: 'true'
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: 'false' AllowShortIfStatementsOnASingleLine: 'false'
AllowShortLoopsOnASingleLine: 'false' AllowShortLoopsOnASingleLine: 'false'
AlwaysBreakBeforeMultilineStrings: 'true' AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: 'false'
AlwaysBreakTemplateDeclarations: 'true' AlwaysBreakTemplateDeclarations: 'true'
BreakBeforeBinaryOperators: 'true' BinPackArguments: 'true'
BreakBeforeBraces: Stroustrup BinPackParameters: 'true'
BreakAfterJavaFieldAnnotations: 'true'
BreakBeforeBinaryOperators: All
BreakBeforeBraces: Linux
BreakBeforeInheritanceComma: 'false'
BreakBeforeTernaryOperators: 'true' BreakBeforeTernaryOperators: 'true'
BreakConstructorInitializersBeforeComma: 'false' BreakConstructorInitializers: BeforeColon
BreakStringLiterals: 'true'
ColumnLimit: '80' ColumnLimit: '80'
ConstructorInitializerAllOnOneLineOrOnePerLine: 'true' CompactNamespaces: 'false'
ConstructorInitializerAllOnOneLineOrOnePerLine: 'false'
Cpp11BracedListStyle: 'true' Cpp11BracedListStyle: 'true'
FixNamespaceComments: 'true'
IncludeBlocks: Regroup
IndentCaseLabels: 'false' IndentCaseLabels: 'false'
IndentPPDirectives: AfterHash
IndentWrappedFunctionNames: 'false'
JavaScriptQuotes: Leave
JavaScriptWrapImports: 'true'
KeepEmptyLinesAtTheStartOfBlocks: 'false' KeepEmptyLinesAtTheStartOfBlocks: 'false'
Language: Cpp Language: Cpp
MaxEmptyLinesToKeep: '2' MaxEmptyLinesToKeep: '1'
PointerAlignment: Left NamespaceIndentation: Inner
PointerAlignment: Right
ReflowComments: 'true'
SortIncludes: 'true'
SortUsingDeclarations: 'true'
SpaceAfterCStyleCast: 'false'
SpaceAfterTemplateKeyword: 'false'
SpaceBeforeAssignmentOperators: 'true' SpaceBeforeAssignmentOperators: 'true'
SpaceBeforeParens: ControlStatements SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: 'false' SpaceInEmptyParentheses: 'false'
SpacesBeforeTrailingComments: '2'
SpacesInAngles: 'false' SpacesInAngles: 'false'
SpacesInCStyleCastParentheses: 'false' SpacesInCStyleCastParentheses: 'false'
SpacesInContainerLiterals: 'false'
SpacesInParentheses: 'false' SpacesInParentheses: 'false'
SpacesInSquareBrackets: 'false'
Standard: Cpp11 Standard: Cpp11
TabWidth: '2'
UseTab: ForIndentation UseTab: ForIndentation
IncludeCategories:
- Regex: '^"(llvm-c|clang-c)/'
Priority: 2
- Regex: '^"(llvm|clang)/'
Priority: 3
- Regex: '^(<|"(gtest|isl|json)/)'
Priority: 4
- Regex: '.*'
Priority: 1
... ...