Skip to content
Snippets Groups Projects
.clang-format 2.07 KiB
Newer Older
  • Learn to ignore specific revisions
  • # Generated from CLion C/C++ Code Style settings
    BasedOnStyle: LLVM
    
    kongr45gpen's avatar
    kongr45gpen committed
    AccessModifierOffset: -4
    AlignAfterOpenBracket: Align
    
    AlignConsecutiveAssignments: None
    AlignOperands: Align
    AllowAllArgumentsOnNextLine: false
    AllowAllConstructorInitializersOnNextLine: false
    AllowAllParametersOfDeclarationOnNextLine: false
    AllowShortBlocksOnASingleLine: Always
    AllowShortCaseLabelsOnASingleLine: true
    AllowShortFunctionsOnASingleLine: All
    AllowShortIfStatementsOnASingleLine: Always
    AllowShortLambdasOnASingleLine: All
    AllowShortLoopsOnASingleLine: true
    
    kongr45gpen's avatar
    kongr45gpen committed
    AlwaysBreakAfterReturnType: None
    AlwaysBreakTemplateDeclarations: Yes
    BreakBeforeBraces: Custom
    BraceWrapping:
    
      AfterCaseLabel: false
    
    kongr45gpen's avatar
    kongr45gpen committed
      AfterClass: false
    
      AfterControlStatement: Never
    
    kongr45gpen's avatar
    kongr45gpen committed
      AfterEnum: false
      AfterFunction: false
    
      AfterNamespace: false
    
    kongr45gpen's avatar
    kongr45gpen committed
      AfterUnion: false
      BeforeCatch: false
      BeforeElse: false
    
      IndentBraces: false
    
    kongr45gpen's avatar
    kongr45gpen committed
      SplitEmptyFunction: false
    
      SplitEmptyRecord: true
    BreakBeforeBinaryOperators: None
    
    kongr45gpen's avatar
    kongr45gpen committed
    BreakBeforeTernaryOperators: true
    BreakConstructorInitializers: BeforeColon
    
    BreakInheritanceList: BeforeColon
    ColumnLimit: 0
    
    kongr45gpen's avatar
    kongr45gpen committed
    CompactNamespaces: false
    ContinuationIndentWidth: 4
    IncludeCategories:
      - Regex:           '^"'
        Priority:        3
    
      - Regex:           '^<'
        Priority:        2
    
    kongr45gpen's avatar
    kongr45gpen committed
      - Regex:           '.*'
        Priority:        1
    IndentCaseLabels: true
    IndentPPDirectives: None
    
    IndentWidth: 4
    KeepEmptyLinesAtTheStartOfBlocks: true
    MaxEmptyLinesToKeep: 2
    NamespaceIndentation: All
    
    kongr45gpen's avatar
    kongr45gpen committed
    ObjCSpaceAfterProperty: false
    ObjCSpaceBeforeProtocolList: true
    PointerAlignment: Left
    
    ReflowComments: false
    SpaceAfterCStyleCast: true
    SpaceAfterLogicalNot: false
    
    kongr45gpen's avatar
    kongr45gpen committed
    SpaceAfterTemplateKeyword: true
    SpaceBeforeAssignmentOperators: true
    SpaceBeforeCpp11BracedList: false
    SpaceBeforeCtorInitializerColon: true
    SpaceBeforeInheritanceColon: true
    SpaceBeforeParens: ControlStatements
    
    SpaceBeforeRangeBasedForLoopColon: false
    
    kongr45gpen's avatar
    kongr45gpen committed
    SpaceInEmptyParentheses: false
    SpacesBeforeTrailingComments: 1
    
    SpacesInAngles: false
    
    kongr45gpen's avatar
    kongr45gpen committed
    SpacesInCStyleCastParentheses: false
    
    SpacesInContainerLiterals: false
    
    kongr45gpen's avatar
    kongr45gpen committed
    SpacesInParentheses: false
    SpacesInSquareBrackets: false
    
    TabWidth: 4
    UseTab: ForIndentation