Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please codacy
[simgrid.git] / .clang-format
1 ---
2 Language:        Cpp
3 AccessModifierOffset: -2
4 AlignAfterOpenBracket: Align
5 AlignConsecutiveAssignments: true
6 AlignConsecutiveDeclarations: false
7 AlignEscapedNewlinesLeft: false
8 AlignOperands:   true
9 AlignTrailingComments: true
10 AllowAllParametersOfDeclarationOnNextLine: true
11 AllowShortBlocksOnASingleLine: false
12 AllowShortCaseLabelsOnASingleLine: false
13 AllowShortFunctionsOnASingleLine: Inline
14 AllowShortIfStatementsOnASingleLine: false
15 AllowShortLoopsOnASingleLine: false
16 AlwaysBreakAfterDefinitionReturnType: None
17 AlwaysBreakAfterReturnType: None
18 AlwaysBreakBeforeMultilineStrings: false
19 AlwaysBreakTemplateDeclarations: false
20 BinPackArguments: true
21 BinPackParameters: true
22 BraceWrapping:   
23   AfterClass:      false
24   AfterControlStatement: false
25   AfterEnum:       false
26   AfterFunction:   true
27   AfterNamespace:  false
28   AfterObjCDeclaration: false
29   AfterStruct:     false
30   AfterUnion:      false
31   BeforeCatch:     false
32   BeforeElse:      false
33   IndentBraces:    false
34 BreakBeforeBinaryOperators: None
35 BreakBeforeBraces: Custom
36 BreakBeforeTernaryOperators: true
37 BreakConstructorInitializersBeforeComma: true
38 ColumnLimit:     120
39 CommentPragmas:  '^ IWYU pragma:'
40 ConstructorInitializerAllOnOneLineOrOnePerLine: true
41 ConstructorInitializerIndentWidth: 4
42 ContinuationIndentWidth: 4
43 Cpp11BracedListStyle: true
44 DerivePointerAlignment: false
45 DisableFormat:   false
46 ExperimentalAutoDetectBinPacking: false
47 ForEachMacros:   [ 'xbt_dynar_foreach', 'xbt_dict_foreach' ]
48 IncludeCategories: 
49   - Regex:           '^"(llvm|llvm-c|clang|clang-c)/'
50     Priority:        2
51   - Regex:           '^(<|"(gtest|isl|json)/)'
52     Priority:        3
53   - Regex:           '.*'
54     Priority:        1
55 IndentCaseLabels: true
56 IndentWidth:     2
57 IndentWrappedFunctionNames: false
58 KeepEmptyLinesAtTheStartOfBlocks: true
59 MacroBlockBegin: ''
60 MacroBlockEnd:   ''
61 MaxEmptyLinesToKeep: 1
62 NamespaceIndentation: None
63 ObjCBlockIndentWidth: 2
64 ObjCSpaceAfterProperty: false
65 ObjCSpaceBeforeProtocolList: true
66 PenaltyBreakBeforeFirstCallParameter: 19
67 PenaltyBreakComment: 300
68 PenaltyBreakFirstLessLess: 120
69 PenaltyBreakString: 1000
70 PenaltyExcessCharacter: 1000000
71 PenaltyReturnTypeOnItsOwnLine: 60
72 PointerAlignment: Left
73 ReflowComments:  true
74 SortIncludes:    true
75 SpaceAfterCStyleCast: false
76 SpaceBeforeAssignmentOperators: true
77 SpaceBeforeParens: ControlStatements
78 SpaceInEmptyParentheses: false
79 SpacesBeforeTrailingComments: 1
80 SpacesInAngles:  false
81 SpacesInContainerLiterals: true
82 SpacesInCStyleCastParentheses: false
83 SpacesInParentheses: false
84 SpacesInSquareBrackets: false
85 Standard:        Cpp11
86 TabWidth:        8
87 UseTab:          Never
88 ...
89