doctest

FORK: The fastest feature-rich C++11/14/17/20 single-header testing framework
git clone https://git.neptards.moe/neptards/doctest.git
Log | Files | Refs | README

.clang-format (2171B)


      1 # https://clang.llvm.org/docs/ClangFormatStyleOptions.html
      2 
      3 DisableFormat: false
      4 Language: Cpp
      5 Standard: Cpp11
      6 IndentWidth: 4
      7 TabWidth: 4
      8 UseTab: Never
      9 ColumnLimit: 100
     10 ReflowComments: false
     11 SortIncludes: false
     12 
     13 AlignConsecutiveAssignments: true
     14 AlignConsecutiveDeclarations: true
     15 AlignEscapedNewlinesLeft: false
     16 AlignOperands: true
     17 AlignTrailingComments: true
     18 AlignAfterOpenBracket: true
     19 DerivePointerAlignment: false
     20 PointerAlignment: Left
     21 IndentCaseLabels: true
     22 ContinuationIndentWidth: 8
     23 NamespaceIndentation: Inner
     24 CompactNamespaces: true
     25 FixNamespaceComments: true
     26 AccessModifierOffset: -4
     27 
     28 SpaceAfterControlStatementKeyword: false
     29 SpaceAfterCStyleCast: false
     30 SpaceBeforeAssignmentOperators: true
     31 SpaceBeforeParens: Never
     32 SpaceInEmptyParentheses: false
     33 SpacesBeforeTrailingComments: 1
     34 SpacesInAngles: false
     35 SpacesInCStyleCastParentheses: false
     36 SpacesInContainerLiterals: false
     37 SpacesInParentheses: false
     38 SpacesInSquareBrackets: false
     39 Cpp11BracedListStyle: true
     40 
     41 KeepEmptyLinesAtTheStartOfBlocks: false
     42 MaxEmptyLinesToKeep: 1
     43 BinPackArguments: true
     44 BinPackParameters: true
     45 AlwaysBreakAfterReturnType: None
     46 AlwaysBreakAfterDefinitionReturnType: None
     47 AlwaysBreakTemplateDeclarations: true
     48 BreakConstructorInitializersBeforeComma: true
     49 ConstructorInitializerAllOnOneLineOrOnePerLine: false
     50 ConstructorInitializerIndentWidth: 8
     51 
     52 AllowShortIfStatementsOnASingleLine: false
     53 AllowShortLoopsOnASingleLine: false
     54 AllowShortBlocksOnASingleLine: true
     55 AllowShortCaseLabelsOnASingleLine: true
     56 AllowAllParametersOfDeclarationOnNextLine: true
     57 AllowShortFunctionsOnASingleLine: All
     58 
     59 BreakBeforeBinaryOperators: false
     60 BreakBeforeTernaryOperators: false
     61 BreakStringLiterals: true
     62 BreakBeforeBraces: Custom
     63 BraceWrapping:
     64     AfterClass: true
     65     AfterEnum: true
     66     AfterNamespace: false
     67     AfterStruct: true
     68     AfterUnion: true
     69     
     70     BeforeCatch: false
     71     BeforeElse: false
     72     IndentBraces: false
     73     AfterFunction: false
     74     AfterControlStatement: false
     75 
     76 # penalties not thought of yet
     77 PenaltyBreakBeforeFirstCallParameter: 19
     78 PenaltyBreakComment: 60
     79 PenaltyBreakString: 1000
     80 PenaltyBreakFirstLessLess: 120
     81 PenaltyExcessCharacter: 1000000
     82 PenaltyReturnTypeOnItsOwnLine: 1000