diff options
author | hardly <vik.kirilov@gmail.com> | 2014-08-06 01:43:51 +0400 |
---|---|---|
committer | onqtam <vik.kirilov@gmail.com> | 2016-03-05 06:20:00 +0300 |
commit | b1e7e147a8a71d67e38dbcc20687399bd73e563a (patch) | |
tree | 494492810420236ca5ebb1cba54a84f12b30df2a /.clang-format |
squashing git history for the last time
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..6b1cb1df --- /dev/null +++ b/.clang-format @@ -0,0 +1,80 @@ +# http://clang.llvm.org/docs/ClangFormatStyleOptions.html + +DisableFormat: false +Language: Cpp +Standard: Cpp03 +IndentWidth: 4 +TabWidth: 4 +UseTab: Never +ColumnLimit: 100 +ReflowComments: false +SortIncludes: false + +AlignConsecutiveAssignments: true +AlignConsecutiveDeclarations: true +AlignEscapedNewlinesLeft: false +AlignOperands: true +AlignTrailingComments: true +AlignAfterOpenBracket: true +DerivePointerAlignment: false +PointerAlignment: Left +IndentCaseLabels: true +ContinuationIndentWidth: 8 +NamespaceIndentation: Inner +AccessModifierOffset: -4 + +SpaceAfterControlStatementKeyword: false +SpaceAfterCStyleCast: false +SpaceBeforeAssignmentOperators: true +SpaceBeforeParens: Never +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 1 +SpacesInAngles: false +SpacesInCStyleCastParentheses: false +SpacesInContainerLiterals: false +SpacesInParentheses: false +SpacesInSquareBrackets: false +Cpp11BracedListStyle: true + +KeepEmptyLinesAtTheStartOfBlocks: false +MaxEmptyLinesToKeep: 1 +BinPackArguments: true +BinPackParameters: true +AlwaysBreakAfterReturnType: None +AlwaysBreakAfterDefinitionReturnType: None +AlwaysBreakTemplateDeclarations: true +BreakConstructorInitializersBeforeComma: true +ConstructorInitializerAllOnOneLineOrOnePerLine: false +ConstructorInitializerIndentWidth: 8 + +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +AllowShortBlocksOnASingleLine: true +AllowShortCaseLabelsOnASingleLine: true +AllowAllParametersOfDeclarationOnNextLine: true +AllowShortFunctionsOnASingleLine: All + +BreakBeforeBinaryOperators: false +BreakBeforeTernaryOperators: false +BreakStringLiterals: true +BreakBeforeBraces: Custom +BraceWrapping: + AfterClass: true + AfterEnum: true + AfterNamespace: true + AfterStruct: true + AfterUnion: true + + BeforeCatch: false + BeforeElse: false + IndentBraces: false + AfterFunction: false + AfterControlStatement: false + +# penalties not thought of yet +PenaltyBreakBeforeFirstCallParameter: 19 +PenaltyBreakComment: 60 +PenaltyBreakString: 1000 +PenaltyBreakFirstLessLess: 120 +PenaltyExcessCharacter: 1000000 +PenaltyReturnTypeOnItsOwnLine: 1000 |