diff options
author | Vaxry <[email protected]> | 2022-12-16 17:17:31 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2022-12-16 17:17:31 +0000 |
commit | 98a4fa2b0d79298fa29b048a3ba15c3bf5aed8cd (patch) | |
tree | 64e78342cf08e5f9ad87bd5f6ea36233133be7bb /.clang-format | |
parent | 7c33c7fc64203c17b4f3625a16ae6b4774992c0e (diff) | |
download | Hyprland-98a4fa2b0d79298fa29b048a3ba15c3bf5aed8cd.tar.gz Hyprland-98a4fa2b0d79298fa29b048a3ba15c3bf5aed8cd.zip |
Added clang format (#1239)
* clang-format stuff and format files
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..215809bc --- /dev/null +++ b/.clang-format @@ -0,0 +1,65 @@ +--- +Language: Cpp +BasedOnStyle: LLVM + +AccessModifierOffset: -2 +AlignAfterOpenBracket: Align +AlignConsecutiveMacros: true +AlignConsecutiveAssignments: true +AlignEscapedNewlines: Right +AlignOperands: false +AlignTrailingComments: true +AllowAllArgumentsOnNextLine: true +AllowAllConstructorInitializersOnNextLine: true +AllowAllParametersOfDeclarationOnNextLine: true +AllowShortBlocksOnASingleLine: true +AllowShortCaseLabelsOnASingleLine: true +AllowShortFunctionsOnASingleLine: Empty +AllowShortIfStatementsOnASingleLine: Never +AllowShortLambdasOnASingleLine: All +AllowShortLoopsOnASingleLine: false +AlwaysBreakAfterDefinitionReturnType: None +AlwaysBreakAfterReturnType: None +AlwaysBreakBeforeMultilineStrings: false +AlwaysBreakTemplateDeclarations: Yes +BreakBeforeBraces: Attach +BreakBeforeTernaryOperators: false +BreakConstructorInitializers: AfterColon +ColumnLimit: 180 +CompactNamespaces: false +ConstructorInitializerAllOnOneLineOrOnePerLine: false +ExperimentalAutoDetectBinPacking: false +FixNamespaceComments: false +IncludeBlocks: Preserve +IndentCaseLabels: true +IndentWidth: 4 +PointerAlignment: Left +ReflowComments: false +SortIncludes: false +SortUsingDeclarations: false +SpaceAfterCStyleCast: false +SpaceAfterLogicalNot: false +SpaceAfterTemplateKeyword: true +SpaceBeforeCtorInitializerColon: true +SpaceBeforeInheritanceColon: true +SpaceBeforeParens: ControlStatements +SpaceBeforeRangeBasedForLoopColon: true +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 1 +SpacesInAngles: false +SpacesInCStyleCastParentheses: false +SpacesInContainerLiterals: false +SpacesInParentheses: false +SpacesInSquareBrackets: false +Standard: Auto +TabWidth: 4 +UseTab: Never + +AllowShortEnumsOnASingleLine: false + +BraceWrapping: + AfterEnum: false + +AlignConsecutiveDeclarations: AcrossEmptyLinesAndComments + +NamespaceIndentation: All |