Skip to content

Commit 4939509

Browse files
marcomagdyMarco Magdy
and
Marco Magdy
authoredJun 4, 2021
Add clang-tidy configuration file
This can be used with CMake as follows: $ cmake -DCMAKE_CXX_CLANG_TIDY=<path to clang-tidy tool> .. Note: this requires CMake v3.6 or above Co-authored-by: Marco Magdy <magmarco@amazon.com>
1 parent 543f837 commit 4939509

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
 

‎.clang-tidy

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
Checks: 'clang-diagnostic-*,clang-analyzer-*,performance-*,readability-*,modernize-*,bugprone-*,misc-*'
3+
WarningsAsErrors: 'performance-*'
4+
HeaderFilterRegex: ''
5+
FormatStyle: 'none'
6+
CheckOptions:
7+
- key: modernize-pass-by-value.ValuesOnly
8+
value: '1',
9+
- key: readability-implicit-bool-conversion.AllowPointerConditions
10+
value: '1',
11+
- key: readability-implicit-bool-conversion.AllowIntegerConditions
12+
value: '1'
13+
14+
15+
...

0 commit comments

Comments
 (0)
Please sign in to comment.