Skip to content
Snippets Groups Projects
.clang-format 1.65 KiB
Newer Older
  • Learn to ignore specific revisions
  • ---
    BasedOnStyle:  Chromium
    BreakConstructorInitializersBeforeComma: true
    AlignAfterOpenBracket: Align
    AlignConsecutiveAssignments: true
    AlignConsecutiveDeclarations: true
    AlignEscapedNewlines: Right
    AlignOperands:   true
    AlignTrailingComments: true
    AllowAllParametersOfDeclarationOnNextLine: true
    AllowShortBlocksOnASingleLine: false
    AllowShortCaseLabelsOnASingleLine: false
    AllowShortFunctionsOnASingleLine: All
    AllowShortIfStatementsOnASingleLine: false
    AllowShortLoopsOnASingleLine: false
    AlwaysBreakAfterDefinitionReturnType: None
    AlwaysBreakAfterReturnType: None
    AlwaysBreakBeforeMultilineStrings: false
    AlwaysBreakTemplateDeclarations: true
    BraceWrapping:
      AfterClass:      false
      AfterControlStatement: false
      AfterEnum:       false
      AfterFunction:   false
      AfterNamespace:  false
      AfterObjCDeclaration: false
      AfterStruct:     false
      AfterUnion:      false
      AfterExternBlock: false
      BeforeCatch:     false
      BeforeElse:      false
      IndentBraces:    false
      SplitEmptyFunction: true
      SplitEmptyRecord: true
      SplitEmptyNamespace: true
    ConstructorInitializerAllOnOneLineOrOnePerLine: true
    Cpp11BracedListStyle: true
    ColumnLimit: 120
    Standard: Cpp11
    #SpaceBeforeParens: ControlStatements
    SpaceAfterControlStatementKeyword: true
    BinPackArguments: true
    BinPackParameters: true
    PenaltyBreakAssignment: 2
    PenaltyBreakBeforeFirstCallParameter: 19
    PenaltyBreakComment: 300
    PenaltyBreakFirstLessLess: 120
    PenaltyBreakString: 1000
    PenaltyExcessCharacter: 1000000
    PenaltyReturnTypeOnItsOwnLine: 60
    PointerAlignment: Left
    PointerBindsToType: true
    NamespaceIndentation: All
    ReflowComments:  true
    SortIncludes:    true
    SortUsingDeclarations: true
    SpacesBeforeTrailingComments: 1
    ...