From b88023c96ee999a0b22e2a7513ef2c8c90ff1b70 Mon Sep 17 00:00:00 2001 From: LPFaint99 Date: Mon, 26 May 2014 18:32:49 -0700 Subject: [PATCH] initial clang format config. --- Source/.clang-format | 55 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Source/.clang-format diff --git a/Source/.clang-format b/Source/.clang-format new file mode 100644 index 0000000000..41d46c9331 --- /dev/null +++ b/Source/.clang-format @@ -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 +... +