Skip to content

Commit 17ba53c

Browse files
committed
add clang tidy
1 parent fddbfce commit 17ba53c

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.clang-tidy

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Checks: >
2+
-*,
3+
bugprone-*,
4+
google-*,
5+
misc-*,
6+
modernize-*,
7+
performance-*,
8+
portability-*,
9+
readability-*,
10+
-google-readability-namespace-comments,
11+
-google-runtime-int,
12+
-google-runtime-references,
13+
-misc-non-private-member-variables-in-classes,
14+
-readability-named-parameter,
15+
-readability-braces-around-statements,
16+
-readability-magic-numbers
17+
18+
# Turn all the warnings from the checks above into errors.
19+
WarningsAsErrors: ""

scripts/clang_tidy.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
clang-tidy test/test.cpp -- -Iinclude -Ithird_party/include

0 commit comments

Comments
 (0)