Skip to content

Commit e4a1c20

Browse files
committed
Enable misc-definitions-in-headers clang-tidy check
To find non-extern non-inline function definitions.
1 parent 8ba8d41 commit e4a1c20

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.clang-tidy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
Checks: -*,
33
,boost-use-to-string,
4+
,misc-definitions-in-headers,
45
,misc-string-compare,
56
,misc-uniqueptr-reset-release,
67
,modernize-deprecated-headers,
@@ -32,6 +33,8 @@ CheckOptions:
3233
value: '10'
3334
- key: google-readability-namespace-comments.SpacesBeforeComments
3435
value: '2'
36+
- key: misc-definitions-in-headers.HeaderFileExtensions
37+
value: 'h,hh,hpp,hxx,icc'
3538
- key: modernize-loop-convert.MaxCopySize
3639
value: '16'
3740
- key: modernize-loop-convert.MinConfidence

0 commit comments

Comments
 (0)