-
Notifications
You must be signed in to change notification settings - Fork 503
/
.clang-format
42 lines (42 loc) · 1.06 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
---
Language: Cpp
BasedOnStyle: Google
AlignAfterOpenBracket: DontAlign
AlignOperands: false
AlignTrailingComments: false
AllowShortFunctionsOnASingleLine: Inline
AlwaysBreakBeforeMultilineStrings: false
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeTernaryOperators: false
ColumnLimit: 90
ConstructorInitializerIndentWidth: 2
DerivePointerAlignment: false
IncludeCategories:
- Priority: 3
Regex: '^<.*/' # Like <boost/lexical_cast.hpp>
- Priority: 1
Regex: '^<.*\.' # Like <fcntl.h>
- Priority: 2
Regex: '^<' # Like <vector>
- Priority: 4
Regex: '^"' # Like "util/auth-util.h"
SpacesBeforeTrailingComments: 1
Standard: Cpp11
---
Language: Java
BasedOnStyle: Chromium
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: true
AllowShortBlocksOnASingleLine: true
AlwaysBreakBeforeMultilineStrings: true
BreakBeforeTernaryOperators: false
ColumnLimit: 90
ContinuationIndentWidth: 4
IndentWidth: 2
IndentWrappedFunctionNames: true
SortIncludes: true
---
Language: Proto
BasedOnStyle: Google
ColumnLimit: 90