From 3b72a4f81011cbebc3532b8b16706756ea29405a Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 30 Sep 2021 11:05:47 -0400 Subject: [PATCH] set C / C++ standard parameter for clang-tidy --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9e84845..bb339e3 100644 --- a/Makefile +++ b/Makefile @@ -129,7 +129,8 @@ util.o: util.c util.h check: tidy tidy: - clang-tidy $(SOURCES) -- $(CPPFLAGS) + clang-tidy --extra-arg=-std=c11 $(filter %.c,$(SOURCES)) -- $(CPPFLAGS) + clang-tidy --extra-arg=-std=c++17 $(filter %.cc,$(SOURCES)) -- $(CPPFLAGS) clean: rm -f libhardened_malloc.so $(OBJECTS)