Skip to content

Commit 30bf563

Browse files
committed
Update .clang-format file & apply clang-format to whole project
1 parent 0641a5f commit 30bf563

File tree

207 files changed

+73664
-78316
lines changed

Some content is hidden

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

207 files changed

+73664
-78316
lines changed

.clang-format

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,20 @@
11
---
22
# Indentation for all files
33
ColumnLimit: 120
4-
IndentWidth: 4
5-
TabWidth: 4
6-
UseTab: Never
74

85
# C++ Options
96
Language: Cpp
10-
Standard: c++17
11-
127
BasedOnStyle: Google
138

9+
# Useful for sorting the project inclusions and standard library inclusions separately
1410
IncludeBlocks: Preserve
1511

16-
AccessModifierOffset: -4
17-
ContinuationIndentWidth: 4
18-
1912
# Constructor initializers better formatted in presence of preprocessor conditions (see image.cpp)
2013
BreakConstructorInitializers: AfterColon
21-
AllowAllConstructorInitializersOnNextLine: true
22-
23-
# break braces for most of the cases (except conditionals and loops)
24-
BreakBeforeBraces: Custom
25-
BraceWrapping:
26-
AfterStruct: true
27-
AfterClass: true
28-
AfterFunction: true
29-
AfterControlStatement: false
30-
AfterEnum: true
31-
AfterNamespace: true
3214

3315
# Do not allow SingleLine statements (to improve coverage statistics)
3416
AllowShortFunctionsOnASingleLine: None
35-
AllowShortBlocksOnASingleLine: false
3617
AllowShortIfStatementsOnASingleLine: false
3718
AllowShortLoopsOnASingleLine: false
3819

39-
Cpp11BracedListStyle: true
40-
4120
...

0 commit comments

Comments
 (0)