Skip to content

Commit 6bc311e

Browse files
committed
[file ]: add clang format file
Signed-off-by: Bo-Wei Chen(BWbwchen) <[email protected]>
1 parent 402fee7 commit 6bc311e

File tree

4 files changed

+75
-1
lines changed

4 files changed

+75
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@
1515
.vscode
1616
*.sh
1717
a
18-
.clang-format
1918
codeforce/cf.cpp

codeforce/.clang-format

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
BasedOnStyle: Google
2+
Language: Cpp
3+
MaxEmptyLinesToKeep: 3
4+
IndentCaseLabels: false
5+
AllowShortIfStatementsOnASingleLine: false
6+
AllowShortCaseLabelsOnASingleLine: false
7+
AllowShortLoopsOnASingleLine: false
8+
DerivePointerAlignment: false
9+
PointerAlignment: Right
10+
SpaceAfterCStyleCast: true
11+
TabWidth: 4
12+
UseTab: Never
13+
IndentWidth: 4
14+
AccessModifierOffset: -4
15+
ForEachMacros:
16+
- foreach
17+
- Q_FOREACH
18+
- BOOST_FOREACH
19+
- list_for_each
20+
- list_for_each_safe
21+
- list_for_each_entry
22+
- list_for_each_entry_safe
23+
- hlist_for_each_entry
24+
- rb_list_foreach
25+
- rb_list_foreach_safe

cses/.clang-format

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
BasedOnStyle: Google
2+
Language: Cpp
3+
MaxEmptyLinesToKeep: 3
4+
IndentCaseLabels: false
5+
AllowShortIfStatementsOnASingleLine: false
6+
AllowShortCaseLabelsOnASingleLine: false
7+
AllowShortLoopsOnASingleLine: false
8+
DerivePointerAlignment: false
9+
PointerAlignment: Right
10+
SpaceAfterCStyleCast: true
11+
TabWidth: 4
12+
UseTab: Never
13+
IndentWidth: 4
14+
AccessModifierOffset: -4
15+
ForEachMacros:
16+
- foreach
17+
- Q_FOREACH
18+
- BOOST_FOREACH
19+
- list_for_each
20+
- list_for_each_safe
21+
- list_for_each_entry
22+
- list_for_each_entry_safe
23+
- hlist_for_each_entry
24+
- rb_list_foreach
25+
- rb_list_foreach_safe

leetcode/.clang-format

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
BasedOnStyle: Google
2+
Language: Cpp
3+
MaxEmptyLinesToKeep: 3
4+
IndentCaseLabels: false
5+
AllowShortIfStatementsOnASingleLine: false
6+
AllowShortCaseLabelsOnASingleLine: false
7+
AllowShortLoopsOnASingleLine: false
8+
DerivePointerAlignment: false
9+
PointerAlignment: Right
10+
SpaceAfterCStyleCast: true
11+
TabWidth: 4
12+
UseTab: Never
13+
IndentWidth: 4
14+
AccessModifierOffset: -4
15+
ForEachMacros:
16+
- foreach
17+
- Q_FOREACH
18+
- BOOST_FOREACH
19+
- list_for_each
20+
- list_for_each_safe
21+
- list_for_each_entry
22+
- list_for_each_entry_safe
23+
- hlist_for_each_entry
24+
- rb_list_foreach
25+
- rb_list_foreach_safe

0 commit comments

Comments
 (0)