From 8133444f43da67875463d300ca5e83068dd875a2 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 18 Aug 2019 02:12:18 -0400 Subject: [PATCH] move clang-tidy configuration to .clang-tidy --- .clang-tidy | 1 + Makefile | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 .clang-tidy diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..938fbf1 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1 @@ +Checks: 'bugprone-*,-bugprone-macro-parentheses,cert-*,clang-analyzer-*,readability-*,-readability-inconsistent-declaration-parameter-name,-readability-magic-numbers,-readability-named-parameter,-bugprone-too-small-loop-variable' diff --git a/Makefile b/Makefile index bcf334e..6afa4eb 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,6 @@ endif CFLAGS := $(CFLAGS) -std=c11 $(SHARED_FLAGS) -Wmissing-prototypes CXXFLAGS := $(call safe_flag,-std=c++17,-std=c++14) $(SHARED_FLAGS) LDFLAGS := $(LDFLAGS) -Wl,--as-needed,-z,defs,-z,relro,-z,now,-z,nodlopen,-z,text -TIDY_CHECKS := -checks=bugprone-*,-bugprone-macro-parentheses,cert-*,clang-analyzer-*,readability-*,-readability-inconsistent-declaration-parameter-name,-readability-magic-numbers,-readability-named-parameter,-bugprone-too-small-loop-variable SOURCES := chacha.c h_malloc.c memory.c pages.c random.c util.c OBJECTS := $(SOURCES:.c=.o) @@ -117,7 +116,7 @@ random.o: random.c random.h chacha.h util.h util.o: util.c util.h tidy: - clang-tidy $(TIDY_CHECKS) $(SOURCES) -- $(CPPFLAGS) + clang-tidy $(SOURCES) -- $(CPPFLAGS) clean: rm -f libhardened_malloc.so $(OBJECTS)