Skip to content

Commit 8c125ed

Browse files
committed
Added clang-tidy script
1 parent 4720b70 commit 8c125ed

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.clang-tidy

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Checks: 'modernize-*,modernize-use-override,google-*,-google-runtime-references,misc-*,clang-analyzer-*'
2+
WarningsAsErrors: ''
3+
HeaderFilterRegex: 'async.h|async_logger.h|common.h|details|formatter.h|logger.h|sinks|spdlog.h|tweakme.h|version.h'
4+
AnalyzeTemporaryDtors: false
5+
FormatStyle: none
6+
7+
CheckOptions:
8+
- key: google-readability-braces-around-statements.ShortStatementLines
9+
value: '1'
10+
- key: google-readability-function-size.StatementThreshold
11+
value: '800'
12+
- key: google-readability-namespace-comments.ShortNamespaceLines
13+
value: '10'
14+
- key: google-readability-namespace-comments.SpacesBeforeComments
15+
value: '2'
16+
- key: modernize-loop-convert.MaxCopySize
17+
value: '16'
18+
- key: modernize-loop-convert.MinConfidence
19+
value: reasonable
20+
- key: modernize-loop-convert.NamingStyle
21+
value: CamelCase
22+
- key: modernize-pass-by-value.IncludeStyle
23+
value: llvm
24+
- key: modernize-replace-auto-ptr.IncludeStyle
25+
value: llvm
26+
- key: modernize-use-nullptr.NullMacros
27+
value: 'NULL'
28+

clang_tidy.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
clang-tidy example/example.cpp -- -I ./include

0 commit comments

Comments
 (0)