Skip to content

Instantly share code, notes, and snippets.

@araml
Last active October 2, 2018 16:59
Show Gist options
  • Save araml/0f344f1df4bb35350349085ecd0ae13e to your computer and use it in GitHub Desktop.
Save araml/0f344f1df4bb35350349085ecd0ae13e to your computer and use it in GitHub Desktop.

Revisions

  1. araml revised this gist Oct 2, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .clang-format
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    AlignTrailingComments: true
    AllowShortFunctionsOnASingleLine: true
    AllowShortFunctionsOnASingleLine: false
    AllowShortIfStatementsOnASingleLine: false
    AllowShortLoopsOnASingleLine: false
    AlwaysBreakBeforeMultilineStrings: true
  2. araml created this gist Jul 29, 2016.
    15 changes: 15 additions & 0 deletions .clang-format
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    AlignTrailingComments: true
    AllowShortFunctionsOnASingleLine: true
    AllowShortIfStatementsOnASingleLine: false
    AllowShortLoopsOnASingleLine: false
    AlwaysBreakBeforeMultilineStrings: true
    AlwaysBreakTemplateDeclarations: true
    ConstructorInitializerAllOnOneLineOrOnePerLine: true
    ColumnLimit: 80
    IndentWidth: 4
    Language: Cpp
    NamespaceIndentation: All
    UseTab: Never
    Standard: Cpp11
    AccessModifierOffset: -4
    BreakBeforeBraces: Attach