From e4a1c20b0cdb59d190599ce6cefb031f0cecbc8f Mon Sep 17 00:00:00 2001 From: Matti Kortelainen Date: Wed, 7 Apr 2021 18:24:15 +0200 Subject: [PATCH] Enable misc-definitions-in-headers clang-tidy check To find non-extern non-inline function definitions. --- .clang-tidy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.clang-tidy b/.clang-tidy index 70b839541140b..48b6dfb23ecca 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,6 +1,7 @@ --- Checks: -*, ,boost-use-to-string, + ,misc-definitions-in-headers, ,misc-string-compare, ,misc-uniqueptr-reset-release, ,modernize-deprecated-headers, @@ -32,6 +33,8 @@ CheckOptions: value: '10' - key: google-readability-namespace-comments.SpacesBeforeComments value: '2' + - key: misc-definitions-in-headers.HeaderFileExtensions + value: 'h,hh,hpp,hxx,icc' - key: modernize-loop-convert.MaxCopySize value: '16' - key: modernize-loop-convert.MinConfidence