-
Notifications
You must be signed in to change notification settings - Fork 46
/
.clang-format
79 lines (77 loc) · 2.55 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
79
# http://clang.llvm.org/docs/ClangFormatStyleOptions.html
BasedOnStyle: LLVM
AccessModifierOffset: -4
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignEscapedNewlinesLeft: true
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: All
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true
# AlwaysBreakTemplateDeclarations (bool)
# BinPackArguments (bool)
BinPackParameters: true
# BraceWrapping (BraceWrappingFlags)
# BreakAfterJavaFieldAnnotations (bool)
# BreakBeforeBinaryOperators (BinaryOperatorStyle)
BreakBeforeBraces: Linux
# BreakBeforeTernaryOperators (bool)
# BreakConstructorInitializersBeforeComma (bool)
# BreakStringLiterals (bool)
ColumnLimit: 0
# CommentPragmas (std::string)
# ConstructorInitializerAllOnOneLineOrOnePerLine (bool)
# ConstructorInitializerIndentWidth (unsigned)
# ContinuationIndentWidth (unsigned)
# Cpp11BracedListStyle (bool)
DerivePointerAlignment: false
# DisableFormat (bool)
# ExperimentalAutoDetectBinPacking (bool)
# ForEachMacros (std::vector<std::string>)
# IncludeCategories (std::vector<IncludeCategory>)
# IncludeIsMainRegex (std::string)
IndentCaseLabels: true
IndentWidth: 4
# IndentWrappedFunctionNames (bool)
# JavaScriptQuotes (JavaScriptQuoteStyle)
# KeepEmptyLinesAtTheStartOfBlocks (bool)
# Language (LanguageKind)
# MacroBlockBegin (std::string)
# MacroBlockEnd (std::string)
# MaxEmptyLinesToKeep (unsigned)
NamespaceIndentation: All
# ObjCBlockIndentWidth (unsigned)
# ObjCSpaceAfterProperty (bool)
# ObjCSpaceBeforeProtocolList (bool)
# PenaltyBreakBeforeFirstCallParameter (unsigned)
# PenaltyBreakComment (unsigned)
# PenaltyBreakFirstLessLess (unsigned)
# PenaltyBreakString (unsigned)
# PenaltyExcessCharacter (unsigned)
# PenaltyReturnTypeOnItsOwnLine: 1000
PointerAlignment: Right
# ReflowComments (bool)
SortIncludes: false
# SpaceAfterCStyleCast (bool)
# SpaceAfterTemplateKeyword (bool)
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
# SpacesBeforeTrailingComments (unsigned)
# SpacesInAngles (bool)
SpacesInCStyleCastParentheses: false
# SpacesInContainerLiterals (bool)
SpacesInParentheses: false
SpacesInSquareBrackets: false
# Standard (LanguageStandard)
TabWidth: 4
UseTab: ForIndentation
IndentPPDirectives: AfterHash