diff options
author | ng0 <ng0@n0.is> | 2019-04-26 23:38:07 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-04-26 23:38:07 +0000 |
commit | 158ac943f9213dc8cc1ba4e173090b7a74f1eb5b (patch) | |
tree | e11d605786346d714b0065c4020186797ae91b0c | |
parent | 8552131bc26d1541ad8bd6625dab4107f6d03542 (diff) | |
download | gnunet-gtk-158ac943f9213dc8cc1ba4e173090b7a74f1eb5b.tar.gz gnunet-gtk-158ac943f9213dc8cc1ba4e173090b7a74f1eb5b.zip |
clang-format file
-rw-r--r-- | contrib/clang-format | 123 |
1 files changed, 123 insertions, 0 deletions
diff --git a/contrib/clang-format b/contrib/clang-format new file mode 100644 index 00000000..fd47fb65 --- /dev/null +++ b/contrib/clang-format | |||
@@ -0,0 +1,123 @@ | |||
1 | --- | ||
2 | Language: Cpp | ||
3 | # BasedOnStyle: LLVM | ||
4 | AccessModifierOffset: -2 | ||
5 | AlignAfterOpenBracket: Align | ||
6 | AlignConsecutiveAssignments: false | ||
7 | AlignConsecutiveDeclarations: false | ||
8 | AlignEscapedNewlines: Left | ||
9 | AlignOperands: true | ||
10 | AlignTrailingComments: false | ||
11 | AllowAllArgumentsOnNextLine: false | ||
12 | AllowAllParametersOfDeclarationOnNextLine: false | ||
13 | AllowShortBlocksOnASingleLine: false | ||
14 | AllowShortCaseLabelsOnASingleLine: false | ||
15 | AllowShortFunctionsOnASingleLine: All | ||
16 | AllowShortIfStatementsOnASingleLine: false | ||
17 | AllowShortLoopsOnASingleLine: false | ||
18 | AlwaysBreakAfterDefinitionReturnType: None | ||
19 | AlwaysBreakAfterReturnType: TopLevel | ||
20 | AlwaysBreakBeforeMultilineStrings: false | ||
21 | AlwaysBreakTemplateDeclarations: MultiLine | ||
22 | BinPackArguments: false | ||
23 | BinPackParameters: false | ||
24 | BraceWrapping: | ||
25 | AfterClass: false | ||
26 | AfterControlStatement: true | ||
27 | AfterEnum: true | ||
28 | AfterFunction: true | ||
29 | AfterNamespace: false | ||
30 | AfterObjCDeclaration: false | ||
31 | AfterStruct: true | ||
32 | AfterUnion: true | ||
33 | AfterExternBlock: false | ||
34 | BeforeCatch: false | ||
35 | BeforeElse: true | ||
36 | IndentBraces: false | ||
37 | SplitEmptyFunction: true | ||
38 | SplitEmptyRecord: true | ||
39 | SplitEmptyNamespace: true | ||
40 | BreakBeforeBinaryOperators: None | ||
41 | BreakBeforeBraces: Custom | ||
42 | BreakBeforeInheritanceComma: false | ||
43 | BreakInheritanceList: BeforeColon | ||
44 | BreakBeforeTernaryOperators: true | ||
45 | BreakConstructorInitializersBeforeComma: false | ||
46 | BreakConstructorInitializers: BeforeColon | ||
47 | BreakAfterJavaFieldAnnotations: false | ||
48 | BreakStringLiterals: false | ||
49 | ColumnLimit: 80 | ||
50 | CommentPragmas: '^ IWYU pragma:' | ||
51 | CompactNamespaces: false | ||
52 | ConstructorInitializerAllOnOneLineOrOnePerLine: false | ||
53 | ConstructorInitializerIndentWidth: 2 | ||
54 | ContinuationIndentWidth: 2 | ||
55 | Cpp11BracedListStyle: true | ||
56 | DerivePointerAlignment: false | ||
57 | DisableFormat: false | ||
58 | ExperimentalAutoDetectBinPacking: true | ||
59 | FixNamespaceComments: true | ||
60 | ForEachMacros: | ||
61 | - foreach | ||
62 | - Q_FOREACH | ||
63 | - BOOST_FOREACH | ||
64 | IncludeBlocks: Preserve | ||
65 | IncludeCategories: | ||
66 | - Regex: '^"(llvm|llvm-c|clang|clang-c)/' | ||
67 | Priority: 2 | ||
68 | - Regex: '^(<|"(gtest|gmock|isl|json)/)' | ||
69 | Priority: 3 | ||
70 | - Regex: '.*' | ||
71 | Priority: 1 | ||
72 | IncludeIsMainRegex: '(Test)?$' | ||
73 | IndentCaseLabels: false | ||
74 | IndentPPDirectives: None | ||
75 | IndentWidth: 2 | ||
76 | IndentWrappedFunctionNames: false | ||
77 | JavaScriptQuotes: Leave | ||
78 | JavaScriptWrapImports: true | ||
79 | KeepEmptyLinesAtTheStartOfBlocks: true | ||
80 | MacroBlockBegin: '' | ||
81 | MacroBlockEnd: '' | ||
82 | MaxEmptyLinesToKeep: 2 | ||
83 | NamespaceIndentation: None | ||
84 | ObjCBinPackProtocolList: Auto | ||
85 | ObjCBlockIndentWidth: 2 | ||
86 | ObjCSpaceAfterProperty: false | ||
87 | ObjCSpaceBeforeProtocolList: true | ||
88 | PenaltyBreakAssignment: 2 | ||
89 | PenaltyBreakBeforeFirstCallParameter: 9999999 | ||
90 | PenaltyBreakComment: 300 | ||
91 | PenaltyBreakFirstLessLess: 120 | ||
92 | PenaltyBreakString: 1000 | ||
93 | PenaltyBreakTemplateDeclaration: 10 | ||
94 | PenaltyExcessCharacter: 1000000 | ||
95 | PenaltyReturnTypeOnItsOwnLine: 60 | ||
96 | PointerAlignment: Right | ||
97 | ReflowComments: true | ||
98 | SortIncludes: false | ||
99 | SortUsingDeclarations: true | ||
100 | SpaceAfterCStyleCast: true | ||
101 | SpaceAfterLogicalNot: true | ||
102 | SpaceAfterTemplateKeyword: true | ||
103 | SpaceBeforeAssignmentOperators: true | ||
104 | SpaceBeforeCpp11BracedList: false | ||
105 | SpaceBeforeCtorInitializerColon: true | ||
106 | SpaceBeforeInheritanceColon: true | ||
107 | SpaceBeforeParens: Always | ||
108 | SpaceBeforeRangeBasedForLoopColon: true | ||
109 | SpaceInEmptyParentheses: false | ||
110 | SpacesBeforeTrailingComments: 1 | ||
111 | SpacesInAngles: false | ||
112 | SpacesInContainerLiterals: true | ||
113 | SpacesInCStyleCastParentheses: false | ||
114 | SpacesInParentheses: false | ||
115 | SpacesInSquareBrackets: false | ||
116 | Standard: Cpp11 | ||
117 | StatementMacros: | ||
118 | - Q_UNUSED | ||
119 | - QT_REQUIRE_VERSION | ||
120 | TabWidth: 2 | ||
121 | UseTab: Never | ||
122 | ... | ||
123 | |||