1+ ---
2+ # C++ Formatting rules for WATonomous Standard
3+
4+ # See https://releases.llvm.org/14.0.0/tools/clang/docs/ClangFormatStyleOptions.html for documentation of these options
5+ BasedOnStyle: Google
6+ IndentWidth: 2
7+ ColumnLimit: 120
8+
9+ AccessModifierOffset: -2
10+ AlignAfterOpenBracket: AlwaysBreak
11+ AlignConsecutiveAssignments: None
12+ AlignConsecutiveDeclarations: None
13+ AlignEscapedNewlines: Left
14+ AlignTrailingComments: false
15+ AllowAllArgumentsOnNextLine: true
16+ AllowAllParametersOfDeclarationOnNextLine: true
17+ AllowShortBlocksOnASingleLine: Empty
18+ AllowShortFunctionsOnASingleLine: false
19+ BinPackArguments: false
20+ BinPackParameters: false
21+ BraceWrapping:
22+ AfterClass: true
23+ AfterControlStatement: MultiLine
24+ AfterEnum: true
25+ AfterFunction: true
26+ AfterNamespace: true
27+ AfterStruct: true
28+ AfterUnion: true
29+ AfterExternBlock: true
30+ BeforeCatch: false
31+ BeforeElse: false
32+ BeforeLambdaBody: false
33+ BeforeWhile: false
34+ IndentBraces: false
35+ SplitEmptyFunction: false
36+ SplitEmptyRecord: false
37+ SplitEmptyNamespace: false
38+ BreakBeforeBraces: Custom
39+ BreakConstructorInitializers: BeforeComma
40+ CompactNamespaces: false
41+ ContinuationIndentWidth: 2
42+ ConstructorInitializerIndentWidth: 0
43+ DerivePointerAlignment: false
44+ EmptyLineAfterAccessModifier: Never
45+ EmptyLineBeforeAccessModifier: LogicalBlock
46+ FixNamespaceComments: true
47+ IncludeBlocks: Regroup
48+ IncludeCategories:
49+ # Headers in <> with .h extension (best guess at C system headers)
50+ - Regex: '<([A-Za-z0-9\Q/-_\E])+\.h>'
51+ Priority: 1
52+ # Headers in <> without extension (C++ system headers)
53+ - Regex: '<([A-Za-z0-9\Q/-_\E])+>'
54+ Priority: 2
55+ # Headers in <> with other extensions.
56+ - Regex: '<([A-Za-z0-9.\Q/-_\E])+>'
57+ Priority: 3
58+ # Headers in ""
59+ - Regex: '"([A-Za-z0-9.\Q/-_\E])+"'
60+ Priority: 4
61+ IndentAccessModifiers: false
62+ IndentPPDirectives: BeforeHash
63+ PackConstructorInitializers: Never
64+ PointerAlignment: Middle
65+ ReferenceAlignment: Middle
66+ ReflowComments: false
67+ SeparateDefinitionBlocks: Always
68+ SortIncludes: CaseInsensitive
69+ SpacesBeforeTrailingComments: 2
0 commit comments