diff options
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..8c8601e --- /dev/null +++ b/.clang-format @@ -0,0 +1,39 @@ +--- +Language: Cpp +UseTab: Never +TabWidth: 2 +Standard: Cpp11 +ConstructorInitializerIndentWidth: 2 +ContinuationIndentWidth: 2 +IndentWidth: 2 +PointerAlignment: Left +ReflowComments: false +# clang-format does not correctly detect corresponding header files at the moment. +# Use BuildTools/FixIncludes.py for now. Enable this when it does. +SortIncludes: false +AccessModifierOffset: -2 +NamespaceIndentation: All +# A ultra high column limit is required as a column limit of 0 does not work as documented. +ColumnLimit: 900 +AllowShortBlocksOnASingleLine: false +AllowShortFunctionsOnASingleLine: Empty +AllowShortLoopsOnASingleLine: false +IndentCaseLabels: true +BreakBeforeBraces: Custom +BraceWrapping: + AfterClass: false + AfterControlStatement: false + AfterEnum: false + AfterFunction: false + AfterNamespace: false + AfterObjCDeclaration: false + AfterStruct: false + AfterUnion: false + BeforeCatch: true + BeforeElse: true + IndentBraces: false +ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] +BreakConstructorInitializersBeforeComma: false +AlignAfterOpenBracket: Align +ConstructorInitializerAllOnOneLineOrOnePerLine: true +AlwaysBreakTemplateDeclarations: true
\ No newline at end of file |