-
Notifications
You must be signed in to change notification settings - Fork 3
/
.clang-format
32 lines (31 loc) · 925 Bytes
/
.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
# Google C/C++ Code Style settings
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
# Author: Kehan Xue, kehan.xue (at) gmail.com
Language: Cpp
BasedOnStyle: LLVM
ColumnLimit: 120
Standard: c++11
TabWidth: 4
UseTab: Never
AllowShortBlocksOnASingleLine: Never
AllowShortFunctionsOnASingleLine: None
InsertNewlineAtEOF: true
AlignAfterOpenBracket: BlockIndent
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortIfStatementsOnASingleLine: Never
BinPackArguments: false
BracedInitializerIndentWidth: 2
AlignConsecutiveMacros:
Enabled: true
AcrossEmptyLines: true
AcrossComments: false
SeparateDefinitionBlocks: Always
BinPackParameters: false
ExperimentalAutoDetectBinPacking: false
AlwaysBreakAfterReturnType: None
AlwaysBreakAfterDefinitionReturnType: None
PenaltyReturnTypeOnItsOwnLine: 500
BreakBeforeBraces: Allman
InsertBraces: true
InsertTrailingCommas: Wrapped