From 6c33e6e889bbc59eda8ae822a8a2db340f2cb8aa Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Tue, 2 Aug 2022 16:31:45 +0100 Subject: [PATCH] Tell clang-tidy .h files are C++ (not C) headers --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index b805f4886..fc9b6b1a9 100644 --- a/Makefile.in +++ b/Makefile.in @@ -334,7 +334,7 @@ clang-tidy: $(CLANGTIDY_DEP) %.cpp.tidy: %.cpp $(CLANGTIDY) $(CLANGTIDY_FLAGS) $< -- $(CLANGTIDY_DEFS) $(CPPCHECK_INC) | 2>&1 tee $@ %.h.tidy: %.h - $(CLANGTIDY) $(CLANGTIDY_FLAGS) $< -- $(CLANGTIDY_DEFS) $(CPPCHECK_INC) | 2>&1 tee $@ + $(CLANGTIDY) $(CLANGTIDY_FLAGS) $< -- $(CLANGTIDY_DEFS) $(CPPCHECK_INC) -x c++-header | 2>&1 tee $@ analyzer-src: -rm -rf src/obj_dbg