Skip to content

Commit bc82352

Browse files
authored
Merge pull request #226 from kurdybacha/clang-format
Problem: inconsistent code style
2 parents 0f840ce + cd72eef commit bc82352

File tree

11 files changed

+1520
-1480
lines changed

11 files changed

+1520
-1480
lines changed

.clang-format

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
BasedOnStyle: LLVM
2+
IndentWidth: 4
3+
UseTab: Never
4+
BreakBeforeBraces: Custom
5+
BraceWrapping:
6+
AfterClass: true
7+
AfterControlStatement: false
8+
AfterEnum: true
9+
AfterFunction: true
10+
AfterNamespace: true
11+
AfterObjCDeclaration: true
12+
AfterStruct: true
13+
AfterUnion: true
14+
BeforeCatch: true
15+
BeforeElse: false
16+
IndentBraces: false
17+
18+
AlignConsecutiveAssignments: false
19+
AlignConsecutiveDeclarations: false
20+
AllowShortIfStatementsOnASingleLine: false
21+
IndentCaseLabels: true
22+
BinPackArguments: true
23+
BinPackParameters: false
24+
AlignTrailingComments: true
25+
AllowShortBlocksOnASingleLine: false
26+
AllowAllParametersOfDeclarationOnNextLine: true
27+
AllowShortFunctionsOnASingleLine: InlineOnly
28+
AlwaysBreakTemplateDeclarations: false
29+
ColumnLimit: 80
30+
MaxEmptyLinesToKeep: 2
31+
KeepEmptyLinesAtTheStartOfBlocks: false
32+
ContinuationIndentWidth: 2
33+
PointerAlignment: Right
34+
ReflowComments: false
35+
SpaceBeforeAssignmentOperators: true
36+
SpaceBeforeParens: Always
37+
SpaceInEmptyParentheses: false
38+
SpacesInAngles: false
39+
SpacesInParentheses: false
40+
SpacesInSquareBrackets: false
41+
Standard: Cpp11
42+
43+
SortIncludes: false
44+
45+
FixNamespaceComments: false
46+
BreakBeforeBinaryOperators: NonAssignment
47+
SpaceAfterTemplateKeyword: true
48+
AlignAfterOpenBracket: Align
49+
AlignOperands: true
50+
BreakConstructorInitializers: AfterColon
51+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
52+
SpaceAfterCStyleCast: true
53+
BreakBeforeTernaryOperators: true

demo/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#include <zmq.hpp>
22

3-
int main(int argc, char** argv)
3+
int main (int argc, char **argv)
44
{
55
zmq::context_t context;
6-
76
return 0;
87
}

0 commit comments

Comments
 (0)