Skip to content

Commit cf0c4cd

Browse files
committed
rt: Begin running tidy on C++ code again. Oops
1 parent 620b4d4 commit cf0c4cd

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

mk/tests.mk

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,34 @@ check-full: tidy all check-stage1 check-stage2 check-stage3 \
7474
ifdef CFG_NOTIDY
7575
tidy:
7676
else
77+
78+
ALL_CS := $(wildcard $(S)src/rt/*.cpp \
79+
$(S)src/rt/*/*.cpp \
80+
$(S)src/rt/*/*/*.cpp \
81+
$(S)srcrustllvm/*.cpp)
82+
ALL_CS := $(filter-out $(S)src/rt/bigint/bigint_ext.cpp \
83+
$(S)src/rt/bigint/bigint_int.cpp \
84+
,$(ALL_CS))
85+
ALL_HS := $(wildcard $(S)src/rt/*.h \
86+
$(S)src/rt/*/*.h \
87+
$(S)src/rt/*/*/*.h \
88+
$(S)srcrustllvm/*.h)
89+
ALL_HS := $(filter-out $(S)src/rt/vg/valgrind.h \
90+
$(S)src/rt/vg/memcheck.h \
91+
$(S)src/rt/uthash/uthash.h \
92+
$(S)src/rt/uthash/utlist.h \
93+
$(S)src/rt/msvc/typeof.h \
94+
$(S)src/rt/msvc/stdint.h \
95+
$(S)src/rt/msvc/inttypes.h \
96+
$(S)src/rt/bigint/bigint.h \
97+
,$(ALL_HS))
98+
7799
tidy:
78100
@$(call E, check: formatting)
79101
$(Q)echo \
80-
$(addprefix $(S)src/, $(RUSTLLVM_LIB_CS) $(RUSTLLVM_OBJS_CS) \
81-
$(RUSTLLVM_HDR) \
82-
$(RUNTIME_CS) $(RUNTIME_HDR) $(RUNTIME_S)) \
83102
$(wildcard $(S)src/etc/*.py) \
103+
$(ALL_CS) \
104+
$(ALL_HS) \
84105
$(COMPILER_CRATE) \
85106
$(COMPILER_INPUTS) \
86107
$(CORELIB_CRATE) \

0 commit comments

Comments
 (0)