From b88023c96ee999a0b22e2a7513ef2c8c90ff1b70 Mon Sep 17 00:00:00 2001 From: LPFaint99 Date: Mon, 26 May 2014 18:32:49 -0700 Subject: [PATCH 1/2] 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 +... + From f22701948388e2ae12b9550dcdc2c5147e95f958 Mon Sep 17 00:00:00 2001 From: LPFaint99 Date: Mon, 26 May 2014 21:28:59 -0700 Subject: [PATCH 2/2] UseTab: ForIndentation --- Source/.clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/.clang-format b/Source/.clang-format index 41d46c9331..0df930b2da 100644 --- a/Source/.clang-format +++ b/Source/.clang-format @@ -38,7 +38,7 @@ ColumnLimit: 120 #Standard: Cpp11 IndentWidth: 4 TabWidth: 4 -UseTab: Always +UseTab: ForIndentation BreakBeforeBraces: Allman #IndentFunctionDeclarationAfterType: false #SpacesInParentheses: false