forked from chipsalliance/Surelog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy
59 lines (58 loc) · 2.21 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
---
# readability-make-member-function-const is great, but it also suggests that
# in cases where we return a non-const pointer.
# So good for a regular cleanup-sweep but not as default.
# Some of the rules below that are disabled should be re-considered once we
# have a somewhat clean baseline (runtime-int, readability-casting,
# narrowing conversion come to mind)
# In particular the disabled clang-analyzer-* messages should all be
# enabled as they uncover real bugs, but once we have the other noise reduced.
# performance-inefficient-string-concatenation is good, but until we use
# absl in this project with absl::StrCat(), the alternatives are not improving
# readability.
WarningsAsErrors: ''
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
Checks: >
clang-diagnostic-*,clang-analyzer-*,
-clang-analyzer-core.CallAndMessage,
-clang-analyzer-cplusplus.NewDeleteLeaks,
readability-*,
-readability-braces-around-statements,
-readability-convert-member-functions-to-static,
-readability-else-after-return,
-readability-function-cognitive-complexity,
-readability-identifier-length,
-readability-implicit-bool-conversion,
-readability-inconsistent-declaration-parameter-name,
-readability-isolate-declaration,
-readability-magic-numbers,
-readability-make-member-function-const,
-readability-named-parameter,
-readability-qualified-auto,
-readability-redundant-access-specifiers,
-readability-simplify-boolean-expr,
-readability-uppercase-literal-suffix,
google-*,
-google-build-using-namespace,
-google-readability-avoid-underscore-in-googletest-name,
-google-readability-braces-around-statements,
-google-readability-casting,
-google-readability-todo,
-google-runtime-int,
performance-*,
bugprone-*,
-bugprone-branch-clone,
-bugprone-narrowing-conversions,
-bugprone-easily-swappable-parameters,
modernize-loop-convert,
modernize-raw-string-literal,
modernize-use-override,
CheckOptions:
- key: performance-unnecessary-value-param.AllowedTypes
value: 'NodeId;SymbolId;PathId'
- key: performance-unnecessary-copy-initialization.AllowedTypes
value: 'NodeId;SymbolId;PathId'
- key: performance-for-range-copy.AllowedTypes
value: 'NodeId;SymbolId;PathId'
...