Skip to content

Instantly share code, notes, and snippets.

@RokkuCode
Created June 6, 2021 03:16
Show Gist options
  • Save RokkuCode/2dce1611c862cafa830ff5ff948e7de0 to your computer and use it in GitHub Desktop.
Save RokkuCode/2dce1611c862cafa830ff5ff948e7de0 to your computer and use it in GitHub Desktop.

Revisions

  1. RokkuCode created this gist Jun 6, 2021.
    60 changes: 60 additions & 0 deletions .clang-format
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,60 @@
    ---
    BasedOnStyle: Mozilla
    AccessModifierOffset: '-4'
    AlignAfterOpenBracket: Align
    AlignConsecutiveAssignments: 'true'
    AlignConsecutiveDeclarations: 'true'
    AlignEscapedNewlinesLeft: 'false'
    AlignOperands: 'true'
    AlignTrailingComments: 'true'
    AllowAllParametersOfDeclarationOnNextLine: 'true'
    AllowShortBlocksOnASingleLine: 'true'
    AllowShortCaseLabelsOnASingleLine: 'false'
    AllowShortFunctionsOnASingleLine: All
    AllowShortIfStatementsOnASingleLine: 'false'
    AllowShortLoopsOnASingleLine: 'false'
    AlwaysBreakAfterDefinitionReturnType: None
    AlwaysBreakAfterReturnType: None
    AlwaysBreakTemplateDeclarations: 'true'
    BreakBeforeBinaryOperators: All
    BreakBeforeBraces: Allman
    BreakBeforeTernaryOperators: 'true'
    BreakConstructorInitializersBeforeComma: 'true'
    BreakStringLiterals: 'false'
    ColumnLimit: '100'
    ConstructorInitializerAllOnOneLineOrOnePerLine: 'false'
    ConstructorInitializerIndentWidth: '0'
    ContinuationIndentWidth: '4'
    Cpp11BracedListStyle: 'false'
    DerivePointerAlignment: 'false'
    DisableFormat: 'false'
    ExperimentalAutoDetectBinPacking: 'true'
    IndentCaseLabels: 'true'
    IndentWidth: '4'
    IndentWrappedFunctionNames: 'false'
    JavaScriptQuotes: Single
    KeepEmptyLinesAtTheStartOfBlocks: 'false'
    Language: Cpp
    MaxEmptyLinesToKeep: '2'
    NamespaceIndentation: None
    ObjCBlockIndentWidth: '4'
    ObjCSpaceAfterProperty: 'false'
    ObjCSpaceBeforeProtocolList: 'false'
    PointerAlignment: Left
    ReflowComments: 'true'
    SortIncludes: 'false'
    SpaceAfterCStyleCast: 'true'
    SpaceBeforeAssignmentOperators: 'true'
    SpaceBeforeParens: ControlStatements
    SpaceInEmptyParentheses: 'false'
    SpacesBeforeTrailingComments: '2'
    SpacesInAngles: 'false'
    SpacesInCStyleCastParentheses: 'false'
    SpacesInContainerLiterals: 'false'
    SpacesInParentheses: 'false'
    SpacesInSquareBrackets: 'false'
    Standard: Cpp11
    TabWidth: '4'
    UseTab: Never

    ...