Created
January 2, 2016 18:01
-
-
Save PeterJohnson/38a9bd11b86479c3a4c3 to your computer and use it in GitHub Desktop.
clang-format for ntcore and wpilib
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 | |
# BasedOnStyle: Google | |
AccessModifierOffset: -1 | |
AlignAfterOpenBracket: true | |
AlignEscapedNewlinesLeft: true | |
AlignOperands: true | |
AlignTrailingComments: true | |
AllowAllParametersOfDeclarationOnNextLine: true | |
AllowShortBlocksOnASingleLine: false | |
AllowShortCaseLabelsOnASingleLine: false | |
AllowShortIfStatementsOnASingleLine: true | |
AllowShortLoopsOnASingleLine: true | |
AllowShortFunctionsOnASingleLine: All | |
AlwaysBreakAfterDefinitionReturnType: false | |
AlwaysBreakTemplateDeclarations: true | |
AlwaysBreakBeforeMultilineStrings: true | |
BreakBeforeBinaryOperators: None | |
BreakBeforeTernaryOperators: true | |
BreakConstructorInitializersBeforeComma: false | |
BinPackParameters: true | |
BinPackArguments: true | |
ColumnLimit: 80 | |
ConstructorInitializerAllOnOneLineOrOnePerLine: true | |
ConstructorInitializerIndentWidth: 4 | |
DerivePointerAlignment: true | |
ExperimentalAutoDetectBinPacking: false | |
IndentCaseLabels: true | |
IndentWrappedFunctionNames: false | |
IndentFunctionDeclarationAfterType: false | |
MaxEmptyLinesToKeep: 1 | |
KeepEmptyLinesAtTheStartOfBlocks: false | |
NamespaceIndentation: None | |
ObjCBlockIndentWidth: 2 | |
ObjCSpaceAfterProperty: false | |
ObjCSpaceBeforeProtocolList: false | |
PenaltyBreakBeforeFirstCallParameter: 1 | |
PenaltyBreakComment: 300 | |
PenaltyBreakString: 1000 | |
PenaltyBreakFirstLessLess: 120 | |
PenaltyExcessCharacter: 1000000 | |
PenaltyReturnTypeOnItsOwnLine: 200 | |
PointerAlignment: Left | |
SpacesBeforeTrailingComments: 2 | |
Cpp11BracedListStyle: true | |
Standard: Auto | |
IndentWidth: 2 | |
TabWidth: 8 | |
UseTab: Never | |
BreakBeforeBraces: Attach | |
SpacesInParentheses: false | |
SpacesInSquareBrackets: false | |
SpacesInAngles: false | |
SpaceInEmptyParentheses: false | |
SpacesInCStyleCastParentheses: false | |
SpaceAfterCStyleCast: false | |
SpacesInContainerLiterals: true | |
SpaceBeforeAssignmentOperators: true | |
ContinuationIndentWidth: 4 | |
CommentPragmas: '^ IWYU pragma:' | |
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] | |
SpaceBeforeParens: ControlStatements | |
DisableFormat: false | |
... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment