forked from waveshareteam/ugv_base_ros
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.clang-format
More file actions
83 lines (62 loc) · 2.33 KB
/
.clang-format
File metadata and controls
83 lines (62 loc) · 2.33 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
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
80
81
82
83
---
AccessModifierOffset: -3
AlignAfterOpenBracket: true
# see https://clang.llvm.org/docs/ClangFormatStyleOptions.html#alignarrayofstructures
AlignArrayOfStructures: Left
AlignConsecutiveAssignments: Consecutive
AlignConsecutiveBitFields: Consecutive
AlignConsecutiveDeclarations: Consecutive
AlignConsecutiveMacros: Consecutive
AlignConsecutiveShortCaseStatements:
Enabled: true
AcrossEmptyLines: true
AcrossComments: true
AlignCaseColons: false
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowShortFunctionsOnASingleLine: None
AllowShortLoopsOnASingleLine: true
AlwaysBreakBeforeMultilineStrings: true
# provide suggestions based on Google's Style Guide
# see https://google.github.io/styleguide/cppguide.html
BasedOnStyle: Google
# see https://clang.llvm.org/docs/ClangFormatStyleOptions.html#binpackarguments
BinPackArguments: false
BinPackParameters: false
# see https://clang.llvm.org/docs/ClangFormatStyleOptions.html#breakbeforebraces
BreakBeforeBraces: Custom
# see https://clang.llvm.org/docs/ClangFormatStyleOptions.html#bracewrapping
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: MultiLine
AfterEnum: false
AfterExternBlock: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
SplitEmptyFunction: false
SplitEmptyRecord: false
# see https://clang.llvm.org/docs/ClangFormatStyleOptions.html#columnlimit
ColumnLimit: 999
# see https://clang.llvm.org/docs/ClangFormatStyleOptions.html#indentwidth
IndentWidth: 4
# see https://clang.llvm.org/docs/ClangFormatStyleOptions.html#language
Language: Cpp
# see https://clang.llvm.org/docs/ClangFormatStyleOptions.html#lineending
LineEnding: LF
# see https://clang.llvm.org/docs/ClangFormatStyleOptions.html#reflowcomments
ReflowComments: false
# see https://clang.llvm.org/docs/ClangFormatStyleOptions.html#removeparentheses
RemoveParentheses: MultipleParentheses
# see https://clang.llvm.org/docs/ClangFormatStyleOptions.html#removesemicolon
RemoveSemicolon: True
# TODO: update this to `c++23` when it becomes available
# see https://clang.llvm.org/docs/ClangFormatStyleOptions.html#standard
Standard: c++20
# see https://clang.llvm.org/docs/ClangFormatStyleOptions.html#usetab
UseTab: Never