Skip to content

Commit 3714a88

Browse files
committed
Update .clang-format and source/header files
1 parent aa13f3e commit 3714a88

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.clang-format

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
BasedOnStyle: Google
22
IndentWidth: 2
33
ColumnLimit: 120
4+
AccessModifierOffset: -2
45
AllowShortFunctionsOnASingleLine: Inline
56
SortIncludes: true
6-
IncludeBlocks: Merge
7-
DerivePointerAlignment: false
7+
IncludeBlocks: Preserve
88
PointerAlignment: Left
9+
DerivePointerAlignment: false
910
SpaceBeforeParens: ControlStatements
1011
BreakBeforeBraces: Allman # Or 'Attach' if you prefer brace on same line
12+
SpacesBeforeTrailingComments: 2

src/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <iostream>
2+
23
#include "math/arithmetic.hpp"
34

45
int main()

tests/test_arithmetic.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <gtest/gtest.h>
2+
23
#include "math/arithmetic.hpp"
34

45
TEST(Arithmetic, Add)

0 commit comments

Comments
 (0)