This is an automated email from the ASF dual-hosted git repository.

masaori pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 0933b16  Run clang-tidy one by one
0933b16 is described below

commit 0933b163b063cfe162864ee287d567197a67f429
Author: Masaori Koshiba <[email protected]>
AuthorDate: Fri Mar 15 13:49:44 2019 +0900

    Run clang-tidy one by one
---
 build/tidy.mk | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/build/tidy.mk b/build/tidy.mk
index 16f1681..9829c0d 100644
--- a/build/tidy.mk
+++ b/build/tidy.mk
@@ -23,12 +23,12 @@ Clang_Tidy_Options = -fix -fix-errors -header-filter=.*
 Clang_Tidy_CC_Files = $(filter %.c, $(sort $(1)))
 Clang_Tidy_CXX_Files = $(filter %.cc, $(sort $(1)))
 
-#clang-tidy rules. We expect these to be actions with something like
-#$(DIST_SOURCES) as the dependencies.rules. Note that $DIST_SOURCES
-#is not an automake API, it is an implementation detail, but it ought
-#to be stable enough.
+# clang-tidy rules. We expect these to be actions with something like
+# $(DIST_SOURCES) as the dependencies.rules. Note that $DIST_SOURCES
+# is not an automake API, it is an implementation detail, but it ought
+# to be stable enough.
 #
-#All this clearly requires GNU make.
+# All this clearly requires GNU make.
 
-CXX_Clang_Tidy = $(CLANG_TIDY) $(Clang_Tidy_Options) $(call 
Clang_Tidy_CXX_Files,$^) -- $(CXXCOMPILE) -x c++
-CC_Clang_Tidy = $(CLANG_TIDY) $(Clang_Tidy_Options) $(call 
Clang_Tidy_CC_Files,$^) -- $(COMPILE) -x c
+CXX_Clang_Tidy = $(foreach tidy_target, $(call Clang_Tidy_CXX_Files,$^), 
$(CLANG_TIDY) $(Clang_Tidy_Options) $(tidy_target) -- $(CXXCOMPILE) -x c++;)
+CC_Clang_Tidy = $(foreach tidy_target, $(call Clang_Tidy_CC_Files,$^), 
$(CLANG_TIDY) $(Clang_Tidy_Options) $(tidy_target) -- $(COMPILE) -x c;)

Reply via email to