-
Notifications
You must be signed in to change notification settings - Fork 777
Expand file tree
/
Copy path.clang-tidy
More file actions
49 lines (42 loc) · 1.31 KB
/
.clang-tidy
File metadata and controls
49 lines (42 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# refer to https://clang.llvm.org/extra/clang-tidy/checks/list.html
#
# Configure clang-tidy for this project.
# Here is an explanation for why some of the checks are disabled:
#
Checks: >
-*,
bugprone-*,
cert-*,
clang-analyzer-*,
concurrency-*,
misc-*,
modernize-*,
performance-*,
portability-*,
readability-*,
-bugprone-easily-swappable-parameters,
-bugprone-macro-parentheses,
-misc-no-recursion,
-misc-unused-parameters,
-readability-braces-around-statements,
-readability-else-after-return,
-readability-function-cognitive-complexity,
-readability-identifier-length,
-readability-isolate-declaration,
-readability-magic-numbers,
-readability-named-parameter,
-readability-non-const-parameter,
-readability-redundant-preprocessor,
-readability-suspicious-call-argument,
-readability-uppercase-literal-suffix
# Turn all the warnings from the checks above into errors.
WarningsAsErrors: "*"
# headers in the following directories will be checked:
# - core/iwasm/
# - core/shared/
HeaderFilterRegex: '(core/iwasm/|core/shared/).*\\.h$'
# goto .clang-format at root directory to see the format style
FormatStyle: file
CheckOptions:
- { key: readability-identifier-naming.NamespaceCase, value: lower_case }
- { key: readability-function-cognitive-complexity.Threshold, value: 100 }