Skip to content

Commit 40b9657

Browse files
committed
Add .clang-format to enable better default formatting.
1 parent f9f315b commit 40b9657

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.clang-format

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
BasedOnStyle: Google
2+
IndentWidth: 2
3+
ColumnLimit: 80
4+
AllowShortFunctionsOnASingleLine: Empty
5+
DerivePointerAlignment: false
6+
PointerAlignment: Left
7+
BreakBeforeBraces: Attach
8+
AllowShortIfStatementsOnASingleLine: false
9+
SpacesInAngles: false
10+
SpacesInCStyleCastParentheses: false
11+
Cpp11BracedListStyle: true
12+
Standard: Latest

0 commit comments

Comments
 (0)