set C / C++ standard parameter for clang-tidy

This commit is contained in:
Daniel Micay committed 2021-09-30 11:05:47 -04:00
1 parent e41d37c3de
commit 3b72a4f810
1 file changed
+2 -1
+2 -1
View File
@@ -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)