diff options
Diffstat (limited to '.clang-format')
| -rw-r--r-- | .clang-format | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..777ad0a --- /dev/null +++ b/.clang-format @@ -0,0 +1,48 @@ +BasedOnStyle: LLVM + +UseTab: Never +IndentWidth: 4 +TabWidth: 4 + +BraceWrapping: + AfterControlStatement: false + AfterFunction: false + AfterEnum: false + AfterClass: false + AfterStruct: false + BeforeElse: false + IndentBraces: false + +BreakBeforeBraces: Attach + +AllowShortBlocksOnASingleLine: true +AllowShortIfStatementsOnASingleLine: true +AllowShortLoopsOnASingleLine: true +AllowShortFunctionsOnASingleLine: Inline +AllowShortCaseLabelsOnASingleLine: true + +SpaceBeforeParens: Custom +SpaceBeforeParensOptions: + AfterControlStatements: false + BeforeNonEmptyParentheses: false + AfterFunctionDefinitionName: true +SpacesBeforeTrailingComments: 3 +SpaceInEmptyParentheses: false + +SpacesInParentheses: true +SpacesInSquareBrackets: false + +PointerAlignment: Left +DerivePointerAlignment: false + +AlignConsecutiveDeclarations: true +AlignConsecutiveAssignments: true +AlignConsecutiveMacros: false + +ColumnLimit: 0 # Do not reflow long lines/comments + +SortIncludes: Never +IncludeBlocks: Preserve + +IndentCaseLabels: false + |