-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy
executable file
·61 lines (58 loc) · 1.53 KB
/
.clang-tidy
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
50
51
52
53
54
55
56
57
58
59
60
61
# This is the file used by the clang-tidy tool, which performs static analysis.
# Inside the file we specify which files to ignore when going through the
# codebase. Rather than using clang-tidy directly, we make use of a python
# script: scripts/cmake_checks/clang_tidy.py. Note: clang-tidy may fail the
# first time we run scripts/build/build_all.sh since the compilation database
# would not have been built by then. So when we run it afterwards it will be
# successful.
---
Checks:
'
*,
android-*,
boost-*,
bugprone-*,
-bugprone-easily-swappable-parameters,
cert-*,
clang-analyzer-core*,
clang-analyzer-cplusplus*,
clang-analyzer-nullability*,
clang-analyzer-optin*,
clang-analyzer-osx*,
clang-analyzer-valist*,
concurrency-*,
cppcoreguidelines-*,
-darwin-*,
-fuchsia-*,
google-*,
hicpp-*,
linuxkernel-*,
llvm-*,
-llvm-header-guard,
-llvmlibc-*,
misc-*
-misc-const-correctness
modernize-*,
mpi-*,
objc-*,
openmp-*,
-openmp-use-default-none
performance-*,
portability-*,
readability-*,
-readability-identifier-length,
-readability-convert-member-functions-to-static,
zircon-*,
altera-*
-altera-unroll-loops
-altera-id-dependent-backward-branch
'
WarningsAsErrors: ''
HeaderFilterRegex: 'src/**/*'
CheckOptions:
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
value: true
- key: readability-function-cognitive-complexity.IgnoreMacros
value: true
- key: readability-function-cognitive-complexity.DescribeBasicIncrements
value: true