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 63f341c  Fix Makefile.am to run clang-tidy
63f341c is described below

commit 63f341c447822442f3f207c4bb3a676023e13b6e
Author: Masaori Koshiba <[email protected]>
AuthorDate: Thu Mar 14 11:40:35 2019 +0900

    Fix Makefile.am to run clang-tidy
---
 proxy/Makefile.am          |  5 ++-
 src/Makefile.am            |  1 -
 src/tscore/Makefile.am     | 92 +---------------------------------------------
 src/tscpp/api/Makefile.am  |  4 ++
 src/tscpp/util/Makefile.am |  7 ++--
 src/wccp/Makefile.am       |  2 +
 6 files changed, 15 insertions(+), 96 deletions(-)

diff --git a/proxy/Makefile.am b/proxy/Makefile.am
index 0bd93d9..1965837 100644
--- a/proxy/Makefile.am
+++ b/proxy/Makefile.am
@@ -62,7 +62,7 @@ libproxy_a_SOURCES = \
        ProxyClientSession.cc \
        ProxyClientSession.h \
        ProxyClientTransaction.cc \
-       ProxyClientTransaction \
+       ProxyClientTransaction.h \
        ReverseProxy.cc \
        ReverseProxy.h \
        StatPages.cc \
@@ -164,3 +164,6 @@ install-data-hook:
                chown -R $(pkgsysuser):$(pkgsysgroup) 
$(DESTDIR)$(pkgsysconfdir) $(DESTDIR)$(pkgdatadir);\
        fi
        -echo "<TS_VERSION> $(PACKAGE_VERSION)" > 
$(DESTDIR)$(pkgsysconfdir)/trafficserver-release
+
+clang-tidy-local: $(DIST_SOURCES)
+       $(CXX_Clang_Tidy)
diff --git a/src/Makefile.am b/src/Makefile.am
index 8e42189..0d7f079 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -43,4 +43,3 @@ include traffic_logcat/Makefile.inc
 
 clang-tidy-local: $(DIST_SOURCES)
        $(CXX_Clang_Tidy)
-       $(CC_Clang_Tidy)
diff --git a/src/tscore/Makefile.am b/src/tscore/Makefile.am
index 5204745..cd08972 100644
--- a/src/tscore/Makefile.am
+++ b/src/tscore/Makefile.am
@@ -48,162 +48,74 @@ libtscore_la_LIBADD = \
        -lc
 
 libtscore_la_SOURCES = \
-       Allocator.h \
        AcidPtr.cc \
-       AcidPtr.h \
        Arena.cc \
-       Arena.h \
        ArgParser.cc \
-       ArgParser.h \
        BaseLogFile.cc \
-       BaseLogFile.h \
-       BufferWriter.h \
-       BufferWriterForward.h \
        BufferWriterFormat.cc \
        ConsistentHash.cc \
-       ConsistentHash.h \
        ContFlags.cc \
-       ContFlags.h \
        CryptoHash.cc \
-       CryptoHash.h \
-       defalloc.h \
        Diags.cc \
-       Diags.h \
        EventNotify.cc \
-       EventNotify.h \
-       Extendible.h \
        fastlz.c \
-       fastlz.h \
        Hash.cc \
        HashFNV.cc \
-       HashFNV.h \
-       Hash.h \
        HashMD5.cc \
-       HashMD5.h \
        HashSip.cc \
-       HashSip.h \
-       History.h \
        HostLookup.cc \
-       HostLookup.h \
        hugepages.cc \
-       hugepages.h \
-       I_Layout.h \
-       ink_aiocb.h \
-       ink_align.h \
-       ink_apidefs.h \
        ink_args.cc \
-       ink_args.h \
        ink_assert.cc \
-       ink_assert.h \
-       ink_atomic.h \
        ink_base64.cc \
-       ink_base64.h \
        ink_cap.cc \
-       ink_cap.h \
        ink_code.cc \
-       ink_code.h \
        ink_defs.cc \
-       ink_defs.h \
        InkErrno.cc \
-       InkErrno.h \
        ink_error.cc \
-       ink_error.h \
-       ink_exception.h \
        ink_file.cc \
-       ink_file.h \
        ink_hrtime.cc \
-       ink_hrtime.h \
        ink_inet.cc \
-       ink_inet.h \
-       ink_inout.h \
-       ink_llqueue.h \
-       ink_lockfile.h \
-       INK_MD5.h \
        ink_memory.cc \
-       ink_memory.h \
        ink_mutex.cc \
-       ink_mutex.h \
-       ink_platform.h \
        ink_queue.cc \
-       ink_queue.h \
        ink_queue_utils.cc \
        ink_rand.cc \
-       ink_rand.h \
        ink_res_init.cc \
        ink_res_mkquery.cc \
-       ink_resolver.h \
        ink_resource.cc \
-       ink_resource.h \
        ink_rwlock.cc \
-       ink_rwlock.h \
        ink_sock.cc \
-       ink_sock.h \
        ink_sprintf.cc \
-       ink_sprintf.h \
        ink_stack_trace.cc \
-       ink_stack_trace.h \
        ink_string.cc \
        ink_string++.cc \
-       ink_string.h \
-       ink_string++.h \
        ink_sys_control.cc \
-       ink_sys_control.h \
        ink_syslog.cc \
-       ink_syslog.h \
        ink_thread.cc \
-       ink_thread.h \
        ink_time.cc \
-       ink_time.h \
        ink_uuid.cc \
-       ink_uuid.h \
        IpMap.cc \
        IpMapConf.cc \
-       IpMapConf.h \
-       IpMap.h \
-       I_Version.h \
-       JeAllocator.h \
        JeAllocator.cc \
        Layout.cc \
-       List.h \
        llqueue.cc \
        lockfile.cc \
        MatcherUtils.cc \
-       MatcherUtils.h \
-       MemSpan.h \
        MemArena.cc \
-       MemArena.h \
        MMH.cc \
-       MMH.h \
-       MT_hashtable.h \
        ParseRules.cc \
-       ParseRules.h \
-       PriorityQueue.h \
-       Ptr.h \
        RbTree.cc \
-       RbTree.h \
        Regex.cc \
-       Regex.h \
        Regression.cc \
-       Regression.h \
-       Result.h \
        runroot.cc \
-       runroot.h \
        signals.cc \
-       signals.h \
-       SimpleTokenizer.h \
        SourceLocation.cc \
-       SourceLocation.h \
-       TestBox.h \
        TextBuffer.cc \
-       TextBuffer.h \
        Tokenizer.cc \
-       Tokenizer.h \
-       Trie.h \
-       TsBuffer.h \
-       ts_file. h ts_file.cc \
+       ts_file.cc \
        Version.cc \
-       X509HostnameValidator.cc \
-       X509HostnameValidator.h
+       X509HostnameValidator.cc
 
 BufferWriterFormat.o : AM_CPPFLAGS += -Wno-char-subscripts
 
diff --git a/src/tscpp/api/Makefile.am b/src/tscpp/api/Makefile.am
index 182c432..1232e92 100644
--- a/src/tscpp/api/Makefile.am
+++ b/src/tscpp/api/Makefile.am
@@ -15,6 +15,8 @@
 #  See the License for the specific language governing permissions and
 #  limitations under the License.
 
+include $(top_srcdir)/build/tidy.mk
+
 lib_LTLIBRARIES = libtscppapi.la
 
 libtscppapi_la_CPPFLAGS = $(AM_CPPFLAGS) -I $(abs_top_srcdir)/include
@@ -47,3 +49,5 @@ libtscppapi_la_SOURCES = \
        utils.cc \
        utils_internal.cc
 
+clang-tidy-local: $(DIST_SOURCES)
+       $(CXX_Clang_Tidy)
diff --git a/src/tscpp/util/Makefile.am b/src/tscpp/util/Makefile.am
index 8f0f442..9e972b4 100644
--- a/src/tscpp/util/Makefile.am
+++ b/src/tscpp/util/Makefile.am
@@ -16,6 +16,8 @@
 #  See the License for the specific language governing permissions and
 #  limitations under the License.
 
+include $(top_srcdir)/build/tidy.mk
+
 check_PROGRAMS = test_tscpputil
 
 TESTS = $(check_PROGRAMS)
@@ -27,9 +29,7 @@ AM_CPPFLAGS += -I$(abs_top_srcdir)/include
 libtscpputil_la_LDFLAGS = -no-undefined -version-info @TS_LIBTOOL_VERSION@
 
 libtscpputil_la_SOURCES = \
-       IntrusiveDList.h \
-       PostScript.h \
-       TextView.h TextView.cc
+       TextView.cc
 
 test_tscpputil_CPPFLAGS = $(AM_CPPFLAGS)\
        -I$(abs_top_srcdir)/tests/include
@@ -48,4 +48,3 @@ clean-local:
 
 clang-tidy-local: $(DIST_SOURCES)
        $(CXX_Clang_Tidy)
-
diff --git a/src/wccp/Makefile.am b/src/wccp/Makefile.am
index 982f9f9..5e57c03 100644
--- a/src/wccp/Makefile.am
+++ b/src/wccp/Makefile.am
@@ -41,3 +41,5 @@ libwccp_a_SOURCES = \
        WccpStatic.cc \
        WccpUtil.h
 
+clang-tidy-local: $(DIST_SOURCES)
+       $(CXX_Clang_Tidy)

Reply via email to