From cf0c4cd7d2918205c13df38c4a62f93e1c72c1ac Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sat, 31 Mar 2012 22:49:11 -0700 Subject: [PATCH] rt: Begin running tidy on C++ code again. Oops --- mk/tests.mk | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/mk/tests.mk b/mk/tests.mk index 2f3db5d9190..dc91588776d 100644 --- a/mk/tests.mk +++ b/mk/tests.mk @@ -74,13 +74,34 @@ check-full: tidy all check-stage1 check-stage2 check-stage3 \ ifdef CFG_NOTIDY tidy: else + +ALL_CS := $(wildcard $(S)src/rt/*.cpp \ + $(S)src/rt/*/*.cpp \ + $(S)src/rt/*/*/*.cpp \ + $(S)srcrustllvm/*.cpp) +ALL_CS := $(filter-out $(S)src/rt/bigint/bigint_ext.cpp \ + $(S)src/rt/bigint/bigint_int.cpp \ + ,$(ALL_CS)) +ALL_HS := $(wildcard $(S)src/rt/*.h \ + $(S)src/rt/*/*.h \ + $(S)src/rt/*/*/*.h \ + $(S)srcrustllvm/*.h) +ALL_HS := $(filter-out $(S)src/rt/vg/valgrind.h \ + $(S)src/rt/vg/memcheck.h \ + $(S)src/rt/uthash/uthash.h \ + $(S)src/rt/uthash/utlist.h \ + $(S)src/rt/msvc/typeof.h \ + $(S)src/rt/msvc/stdint.h \ + $(S)src/rt/msvc/inttypes.h \ + $(S)src/rt/bigint/bigint.h \ + ,$(ALL_HS)) + tidy: @$(call E, check: formatting) $(Q)echo \ - $(addprefix $(S)src/, $(RUSTLLVM_LIB_CS) $(RUSTLLVM_OBJS_CS) \ - $(RUSTLLVM_HDR) \ - $(RUNTIME_CS) $(RUNTIME_HDR) $(RUNTIME_S)) \ $(wildcard $(S)src/etc/*.py) \ + $(ALL_CS) \ + $(ALL_HS) \ $(COMPILER_CRATE) \ $(COMPILER_INPUTS) \ $(CORELIB_CRATE) \