forked from InfiniBrains/mobagen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
54 lines (47 loc) · 1.52 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
# Use the Google style in this project.
BasedOnStyle: Google
AccessModifierOffset: -2
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AlwaysBreakTemplateDeclarations: No
BreakBeforeBraces: Attach
ColumnLimit: 150
ConstructorInitializerAllOnOneLineOrOnePerLine: true
#IncludeBlocks: Preserve
IndentPPDirectives: AfterHash
IndentWidth: 2
NamespaceIndentation: All
BreakBeforeBinaryOperators: All
BreakBeforeTernaryOperators: true
SortIncludes: Never
# Some folks prefer to write "int& foo" while others prefer "int &foo". The
# Google Style Guide only asks for consistency within a project, we chose
# "int& foo" for this project:
DerivePointerAlignment: false
PointerAlignment: Left
#IncludeCategories:
# # Matches common headers first, but sorts them after project includes
# - Regex: '^\"google/cloud/internal/disable_deprecation_warnings.inc\"$'
# Priority: -1
# - Regex: '^\"google/cloud/(internal/|grpc_utils/|testing_util/|[^/]+\.h)'
# Priority: 1000
# - Regex: '^\"google/cloud/' # project includes should sort first
# Priority: 500
# - Regex: '^\"'
# Priority: 1500
# - Regex: '^<grpc/'
# Priority: 2000
# - Regex: '^<google/*'
# Priority: 3000
# - Regex: '^<.*/.*'
# Priority: 4000
# - Regex: '^<[^/]*>'
# Priority: 5000
# Format raw string literals with a `pb` or `proto` tag as proto.
RawStringFormats:
- Language: TextProto
Delimiters:
- 'pb'
- 'proto'
BasedOnStyle: Google
CommentPragmas: '(@copydoc)'