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

This commit is contained in:
Daniel Micay 2021-09-30 11:05:47 -04:00
parent e41d37c3de
commit 3b72a4f810

View File

@ -129,7 +129,8 @@ util.o: util.c util.h
check: tidy check: tidy
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: clean:
rm -f libhardened_malloc.so $(OBJECTS) rm -f libhardened_malloc.so $(OBJECTS)