-
-
Save mwoehlke-kitware/d8ef9466df5096a035059938aef2948d to your computer and use it in GitHub Desktop.
KWIVER clang-format code style (not working)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
Language: Cpp | |
Standard: Cpp11 | |
ColumnLimit: 80 | |
IndentWidth: 2 | |
TabWidth: 8 | |
UseTab: Never | |
AccessModifierOffset: -2 | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: false | |
AlignConsecutiveDeclarations: false | |
AlignEscapedNewlines: DontAlign | |
AlignOperands: true | |
AlignTrailingComments: true | |
AllowAllParametersOfDeclarationOnNextLine: true | |
AllowShortBlocksOnASingleLine: false | |
AllowShortCaseLabelsOnASingleLine: true | |
AllowShortFunctionsOnASingleLine: Inline | |
AllowShortIfStatementsOnASingleLine: true | |
AllowShortLoopsOnASingleLine: false | |
AlwaysBreakAfterReturnType: TopLevel | |
AlwaysBreakBeforeMultilineStrings: false | |
AlwaysBreakTemplateDeclarations: true | |
BinPackArguments: false | |
BinPackParameters: false | |
BraceWrapping: | |
AfterClass: true | |
AfterControlStatement: true | |
AfterEnum: true | |
AfterFunction: true | |
AfterNamespace: false | |
AfterStruct: true | |
AfterUnion: true | |
BeforeCatch: true | |
BeforeElse: true | |
IndentBraces: false | |
SplitEmptyFunction: true | |
SplitEmptyRecord: true | |
SplitEmptyNamespace: true | |
BreakBeforeBinaryOperators: None | |
BreakBeforeBraces: Custom | |
BreakBeforeInheritanceComma: false | |
BreakBeforeTernaryOperators: true | |
BreakConstructorInitializers: BeforeColon | |
BreakStringLiterals: true | |
CommentPragmas: '^(BEGIN|END) ' | |
CompactNamespaces: false | |
ConstructorInitializerAllOnOneLineOrOnePerLine: false | |
ConstructorInitializerIndentWidth: 2 | |
ContinuationIndentWidth: 2 | |
Cpp11BracedListStyle: false | |
DerivePointerAlignment: false | |
DisableFormat: false | |
ExperimentalAutoDetectBinPacking: false | |
FixNamespaceComments: true | |
ForEachMacros: | |
- foreach | |
- Q_FOREACH | |
- BOOST_FOREACH | |
- VITAL_FOREACH | |
IncludeCategories: | |
- Regex: '^"' | |
Priority: 1 | |
- Regex: '^<arrows' | |
Priority: 2 | |
- Regex: '^<vital' | |
Priority: 3 | |
- Regex: '^<gtest/' | |
Priority: 20 | |
- Regex: '^<c\w+>$' | |
Priority: 110 | |
- Regex: '^<\w+>$' | |
Priority: 100 | |
- Regex: '^<' | |
Priority: 10 | |
IncludeIsMainRegex: '^(test_)?' | |
IndentCaseLabels: true | |
IndentWrappedFunctionNames: false | |
KeepEmptyLinesAtTheStartOfBlocks: false | |
MacroBlockBegin: '' | |
MacroBlockEnd: '' | |
MaxEmptyLinesToKeep: 1 | |
NamespaceIndentation: None | |
PenaltyBreakAssignment: 2 | |
PenaltyBreakBeforeFirstCallParameter: 19 | |
PenaltyBreakComment: 300 | |
PenaltyBreakFirstLessLess: 120 | |
PenaltyBreakString: 1000 | |
PenaltyExcessCharacter: 1000000 | |
PenaltyReturnTypeOnItsOwnLine: 60 | |
PointerAlignment: Left | |
ReflowComments: true | |
SortIncludes: true | |
SortUsingDeclarations: true | |
SpaceAfterCStyleCast: false | |
SpaceAfterTemplateKeyword: true | |
SpaceBeforeAssignmentOperators: true | |
SpaceBeforeParens: ControlStatements | |
SpaceInEmptyParentheses: false | |
SpacesBeforeTrailingComments: 1 | |
SpacesInAngles: true | |
SpacesInContainerLiterals: true | |
SpacesInCStyleCastParentheses: false | |
SpacesInParentheses: true | |
SpacesInSquareBrackets: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is an attempt at getting
clang-format
to work on KWIVER code without radically changing the style. It doesn't work well, and is being posted largely as a reference for filing bugs againstclang-format
.