-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.clang-format
37 lines (37 loc) · 1.14 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
---
BasedOnStyle: Microsoft
IndentWidth: 4
UseTab: Never
LineEnding: DeriveLF
MaxEmptyLinesToKeep: 1
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: false
AfterClass: true
AfterControlStatement: MultiLine
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
BeforeWhile: false
AllowShortBlocksOnASingleLine: Never
AllowShortIfStatementsOnASingleLine: Never
IndentCaseLabels: false
IndentPPDirectives: BeforeHash
IncludeBlocks: Preserve # because google c++ guide specifies the order of #include blocks
SortIncludes: CaseInsensitive
ColumnLimit: 120 # same as Microsoft, don't ask me, I just think it's great
InsertNewlineAtEOF: true # Who doesn't like \n in the file end
BinPackParameters: true # Microsoft has set this, but I also saw this config
AlignAfterOpenBracket: DontAlign # I always prefer the long naming, which is a bit cramped for parameters
AlignTrailingComments:
Kind: Always
OverEmptyLines: 1
AlignOperands: AlignAfterOperator
AlignEscapedNewlines: DontAlign
BreakBeforeBinaryOperators: NonAssignment
...