-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.clang-format
79 lines (69 loc) · 1.88 KB
/
.clang-format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
########## This clang-format file is tested on:
########## clang-format version 19.1.7 (https://github.com/llvm/llvm-project.git cd708029e0b2869e80abe31ddb175f7c35361f90)
#
# Author: Sumanto Kar, IIT Bombay
#
BasedOnStyle: Google
ColumnLimit: 78
IndentWidth: 2
TabWidth: 2
UseTab: Never
AccessModifierOffset: -2
NamespaceIndentation: All
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 4
IndentCaseLabels: false
ReflowComments: true
SpacesInLineCommentPrefix:
Minimum: 0
AlignTrailingComments:
Kind: Always
OverEmptyLines: 0
SpaceBeforeParens: ControlStatements
SpacesInAngles: false
SpacesInContainerLiterals: false
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
PointerAlignment: Right
ReferenceAlignment: Right
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: true
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: true
BeforeElse: false
IndentBraces: false
AlignAfterOpenBracket: Align
BreakFunctionDefinitionParameters: false
AllowShortFunctionsOnASingleLine: InlineOnly
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Left
AlignOperands: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: None #TopLevelDefinitions
AlwaysBreakBeforeMultilineStrings: false
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeColon
Cpp11BracedListStyle: true
PackConstructorInitializers: Never
DerivePointerAlignment: false
BreakBeforeBinaryOperators: None
KeepEmptyLines:
AtStartOfBlock: true
MaxEmptyLinesToKeep: 2
SortIncludes: false
BreakAfterReturnType: None
Standard: Cpp11