Skip to content

Commit 0c8fad1

Browse files
authored
Change native format to custom style (DataDog#1553)
* Change format to custom * changes * changes * Fix for windows
1 parent 03ab02e commit 0c8fad1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+3383
-2269
lines changed

Diff for: .clang-format

+42-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,44 @@
11
---
2-
BasedOnStyle: Microsoft
3-
BreakBeforeBraces: WebKit
2+
ColumnLimit: 120
3+
UseTab: Never
4+
IndentWidth: 4
5+
AccessModifierOffset: -4
6+
NamespaceIndentation: Inner
7+
8+
BreakBeforeBraces: Custom
9+
BraceWrapping:
10+
AfterNamespace: true
11+
AfterEnum: true
12+
AfterStruct: true
13+
AfterClass: true
14+
SplitEmptyFunction: true
15+
SplitEmptyRecord: true
16+
AfterControlStatement: true
17+
AfterFunction: true
18+
AfterUnion: true
19+
BeforeElse: true
20+
AfterCaseLabel: true
21+
AfterExternBlock: true
22+
BeforeCatch: true
23+
24+
BreakBeforeTernaryOperators: true
25+
BreakConstructorInitializers: AfterColon
26+
CompactNamespaces: false
27+
AlwaysBreakTemplateDeclarations: true
28+
BreakConstructorInitializersBeforeComma: true
29+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
30+
AllowShortBlocksOnASingleLine: false
31+
AllowShortFunctionsOnASingleLine: false
32+
AllowShortIfStatementsOnASingleLine: true
33+
AllowShortLoopsOnASingleLine: true
434
PointerAlignment: Left
5-
ColumnLimit: '120'
35+
AlignConsecutiveAssignments: false
36+
AlignTrailingComments: true
37+
SpaceAfterCStyleCast: true
38+
CommentPragmas: '^ NO-FORMAT:'
39+
IndentCaseLabels: true
40+
IndentGotoLabels: true
41+
42+
# The following doesn't work pre clang-format version 13
43+
#BreakBeforeConceptDeclarations: true
44+
#EmptyLineBeforeAccessModifier: LogicalBlock

0 commit comments

Comments
 (0)