aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-04-26 23:38:07 +0000
committerng0 <ng0@n0.is>2019-04-26 23:38:07 +0000
commit158ac943f9213dc8cc1ba4e173090b7a74f1eb5b (patch)
treee11d605786346d714b0065c4020186797ae91b0c
parent8552131bc26d1541ad8bd6625dab4107f6d03542 (diff)
downloadgnunet-gtk-158ac943f9213dc8cc1ba4e173090b7a74f1eb5b.tar.gz
gnunet-gtk-158ac943f9213dc8cc1ba4e173090b7a74f1eb5b.zip
clang-format file
-rw-r--r--contrib/clang-format123
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---
2Language: Cpp
3# BasedOnStyle: LLVM
4AccessModifierOffset: -2
5AlignAfterOpenBracket: Align
6AlignConsecutiveAssignments: false
7AlignConsecutiveDeclarations: false
8AlignEscapedNewlines: Left
9AlignOperands: true
10AlignTrailingComments: false
11AllowAllArgumentsOnNextLine: false
12AllowAllParametersOfDeclarationOnNextLine: false
13AllowShortBlocksOnASingleLine: false
14AllowShortCaseLabelsOnASingleLine: false
15AllowShortFunctionsOnASingleLine: All
16AllowShortIfStatementsOnASingleLine: false
17AllowShortLoopsOnASingleLine: false
18AlwaysBreakAfterDefinitionReturnType: None
19AlwaysBreakAfterReturnType: TopLevel
20AlwaysBreakBeforeMultilineStrings: false
21AlwaysBreakTemplateDeclarations: MultiLine
22BinPackArguments: false
23BinPackParameters: false
24BraceWrapping:
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
40BreakBeforeBinaryOperators: None
41BreakBeforeBraces: Custom
42BreakBeforeInheritanceComma: false
43BreakInheritanceList: BeforeColon
44BreakBeforeTernaryOperators: true
45BreakConstructorInitializersBeforeComma: false
46BreakConstructorInitializers: BeforeColon
47BreakAfterJavaFieldAnnotations: false
48BreakStringLiterals: false
49ColumnLimit: 80
50CommentPragmas: '^ IWYU pragma:'
51CompactNamespaces: false
52ConstructorInitializerAllOnOneLineOrOnePerLine: false
53ConstructorInitializerIndentWidth: 2
54ContinuationIndentWidth: 2
55Cpp11BracedListStyle: true
56DerivePointerAlignment: false
57DisableFormat: false
58ExperimentalAutoDetectBinPacking: true
59FixNamespaceComments: true
60ForEachMacros:
61 - foreach
62 - Q_FOREACH
63 - BOOST_FOREACH
64IncludeBlocks: Preserve
65IncludeCategories:
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
72IncludeIsMainRegex: '(Test)?$'
73IndentCaseLabels: false
74IndentPPDirectives: None
75IndentWidth: 2
76IndentWrappedFunctionNames: false
77JavaScriptQuotes: Leave
78JavaScriptWrapImports: true
79KeepEmptyLinesAtTheStartOfBlocks: true
80MacroBlockBegin: ''
81MacroBlockEnd: ''
82MaxEmptyLinesToKeep: 2
83NamespaceIndentation: None
84ObjCBinPackProtocolList: Auto
85ObjCBlockIndentWidth: 2
86ObjCSpaceAfterProperty: false
87ObjCSpaceBeforeProtocolList: true
88PenaltyBreakAssignment: 2
89PenaltyBreakBeforeFirstCallParameter: 9999999
90PenaltyBreakComment: 300
91PenaltyBreakFirstLessLess: 120
92PenaltyBreakString: 1000
93PenaltyBreakTemplateDeclaration: 10
94PenaltyExcessCharacter: 1000000
95PenaltyReturnTypeOnItsOwnLine: 60
96PointerAlignment: Right
97ReflowComments: true
98SortIncludes: false
99SortUsingDeclarations: true
100SpaceAfterCStyleCast: true
101SpaceAfterLogicalNot: true
102SpaceAfterTemplateKeyword: true
103SpaceBeforeAssignmentOperators: true
104SpaceBeforeCpp11BracedList: false
105SpaceBeforeCtorInitializerColon: true
106SpaceBeforeInheritanceColon: true
107SpaceBeforeParens: Always
108SpaceBeforeRangeBasedForLoopColon: true
109SpaceInEmptyParentheses: false
110SpacesBeforeTrailingComments: 1
111SpacesInAngles: false
112SpacesInContainerLiterals: true
113SpacesInCStyleCastParentheses: false
114SpacesInParentheses: false
115SpacesInSquareBrackets: false
116Standard: Cpp11
117StatementMacros:
118 - Q_UNUSED
119 - QT_REQUIRE_VERSION
120TabWidth: 2
121UseTab: Never
122...
123