initial clang format config.

This commit is contained in:
LPFaint99 2014-05-26 18:32:49 -07:00
parent 010ca048df
commit b88023c96e
1 changed files with 55 additions and 0 deletions

55
Source/.clang-format Normal file
View File

@ -0,0 +1,55 @@
---
Language: Cpp
BasedOnStyle: LLVM
#AccessModifierOffset: -2
#ConstructorInitializerIndentWidth: 4
#AlignEscapedNewlinesLeft: false
#AlignTrailingComments: true
#AllowAllParametersOfDeclarationOnNextLine: true
#AllowShortBlocksOnASingleLine: false
#AllowShortIfStatementsOnASingleLine: false
#AllowShortLoopsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
#AlwaysBreakTemplateDeclarations: false
#AlwaysBreakBeforeMultilineStrings: false
#BreakBeforeBinaryOperators: false
#BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: true
#BinPackParameters: true
ColumnLimit: 120
#ConstructorInitializerAllOnOneLineOrOnePerLine: false
#DerivePointerBinding: false
#ExperimentalAutoDetectBinPacking: false
#IndentCaseLabels: false
#MaxEmptyLinesToKeep: 1
#KeepEmptyLinesAtTheStartOfBlocks: true
#NamespaceIndentation: None
#ObjCSpaceAfterProperty: false
#ObjCSpaceBeforeProtocolList: true
#PenaltyBreakBeforeFirstCallParameter: 19
#PenaltyBreakComment: 300
#PenaltyBreakString: 1000
#PenaltyBreakFirstLessLess: 120
#PenaltyExcessCharacter: 1000000
#PenaltyReturnTypeOnItsOwnLine: 60
#PointerBindsToType: false
#SpacesBeforeTrailingComments: 1
#Cpp11BracedListStyle: true
#Standard: Cpp11
IndentWidth: 4
TabWidth: 4
UseTab: Always
BreakBeforeBraces: Allman
#IndentFunctionDeclarationAfterType: false
#SpacesInParentheses: false
#SpacesInAngles: false
#SpaceInEmptyParentheses: false
#SpacesInCStyleCastParentheses: false
#SpacesInContainerLiterals: true
#SpaceBeforeAssignmentOperators: true
#ContinuationIndentWidth: 4
#CommentPragmas: '^ IWYU pragma:'
#ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
#SpaceBeforeParens: ControlStatements
...