-
Notifications
You must be signed in to change notification settings - Fork 145
Expand file tree
/
Copy path.clang-format
More file actions
39 lines (33 loc) · 1.98 KB
/
Copy path.clang-format
File metadata and controls
39 lines (33 loc) · 1.98 KB
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
# See https://clang.llvm.org/docs/ClangFormatStyleOptions.html
# clang-format -style=google -dump-config
# clang-format -i `allC`
BasedOnStyle: Google
ColumnLimit: 119 # default is 80; Google default is 80.
Language: Cpp # default is Cpp; Google default is Cpp.
# Standard: Latest # default is Latest; Google default is Auto; also: Cpp17, Cpp20.
BreakTemplateDeclarations: MultiLine # default is Multiline; Google default is Yes.
AllowShortCaseLabelsOnASingleLine: true # default is true; Google default is false.
DerivePointerAlignment: false # default is false; Google default is true.
ReflowComments: false # default is Always; Google default is Always.
IncludeBlocks: Preserve # default is Preserve; Google default is Regroup.
RequiresClausePosition: SingleLine # default is OwnLine; Google default is OwnLine.
AttributeMacros: ['_Inout_'] # default is []; keeps the space in "_Inout_ ::Name".
# ForEachMacros: ['for_int', 'for_intL']
# # Avoid 'for_int (' using the following:
# SpaceBeforeParens: Custom
# SpaceBeforeParensOptions:
# AfterControlStatements: true
# AfterForeachMacros: false
# AfterIfMacros: true
# # However, "for_int(y, ny) for_int(x, nx)" no longer fits on one line, so give up on this.
# AllowShortBlocksOnASingleLine: Always # default is Never; Google default is Never.
# AllowShortCompoundRequirementOnASingleLine: true
# ForEachMacros: ['foreach', 'Q_FOREACH', 'BOOST_FOREACH']
# SpaceBeforeParens: Custom
# SpaceBeforeParensOptions:
# AfterForeachMacros: false
# AllowShortFunctionsOnASingleLine: Inline # default is All
# CommentPragmas: '^///' # default is '^ IWYU pragma:'; however, it still indents it.
# Standard: Latest # default is Auto # not recognized by Visual Studio
# StatementMacros: ['Q_UNUSED', 'QT_REQUIRE_VERSION']
# MaxEmptyLinesToKeep: 1