Krolyxon
Commit c03ec39

Branches

Refs →

nsxivetc.clang-format

82 lines · 2.0 KB

1# clang-format doesn't dictate the project's code style and can mess up a
2# couple edge cases. However it comes quite close and can be used for fixing
3# most style issues automatically on new changes via `git-clang-format`.
4---
5
6Standard: c++03
7
8ColumnLimit: 0
9
10AccessModifierOffset: -8
11ConstructorInitializerIndentWidth: 8
12ContinuationIndentWidth: 8
13IndentCaseLabels: false
14IndentGotoLabels: false
15IndentPPDirectives: None
16IndentWidth: 8
17IndentWrappedFunctionNames: false
18NamespaceIndentation: None
19TabWidth: 8
20UseTab: AlignWithSpaces
21
22AlignAfterOpenBracket: true
23AlignConsecutiveAssignments: false
24AlignConsecutiveDeclarations: false
25AlignEscapedNewlines: false
26AlignOperands: true
27AlignTrailingComments: false
28DerivePointerAlignment: true
29PointerAlignment: true
30
31AllowAllParametersOfDeclarationOnNextLine: false
32AllowShortBlocksOnASingleLine: true
33AllowShortCaseLabelsOnASingleLine: false
34AllowShortFunctionsOnASingleLine: None
35AllowShortIfStatementsOnASingleLine: false
36AllowShortLoopsOnASingleLine: false
37
38AlwaysBreakAfterDefinitionReturnType: None
39AlwaysBreakAfterReturnType: None
40AlwaysBreakBeforeMultilineStrings: false
41AlwaysBreakTemplateDeclarations: false
42
43BinPackArguments: true
44BinPackParameters: true
45
46BreakBeforeBraces: Custom
47BraceWrapping:
48 AfterControlStatement: MultiLine
49 AfterEnum: false
50 AfterExternBlock: false
51 AfterFunction: true
52 AfterStruct: false
53 AfterUnion: false
54 BeforeElse: false
55 IndentBraces: false
56 SplitEmptyFunction: true
57
58BreakBeforeBinaryOperators: None
59BreakBeforeInheritanceComma: false
60BreakBeforeTernaryOperators: false
61BreakConstructorInitializers: BeforeComma
62BreakConstructorInitializersBeforeComma: false
63BreakStringLiterals: true
64
65Cpp11BracedListStyle: false
66MaxEmptyLinesToKeep: 1
67
68ReflowComments: false
69
70SortIncludes: true
71
72SpaceAfterCStyleCast: false
73SpaceBeforeAssignmentOperators: true
74SpaceBeforeParens: ControlStatements
75SpaceInEmptyParentheses: false
76SpacesBeforeTrailingComments: 1
77SpacesInAngles: false
78SpacesInCStyleCastParentheses: false
79SpacesInParentheses: false
80SpacesInSquareBrackets: false
81
82...