From 36c1a3ca4ab0d4eff1e6d4eeef579cd13ecb3853 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Mon, 3 Mar 2025 19:49:32 -0700 Subject: [PATCH] Remove existing hand-written clang-tidy setup --- CMakeLists.txt | 1 - src/CMakeLists.txt | 13 ------------- 2 files changed, 14 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e631aa201..3635b54ed9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -374,7 +374,6 @@ function (zeek_add_subdir_library name) target_compile_definitions(${target_name} PRIVATE ZEEK_CONFIG_SKIP_VERSION_H) add_dependencies(${target_name} zeek_autogen_files) target_link_libraries(${target_name} PRIVATE $) - add_clang_tidy_files(${FN_ARGS_SOURCES}) target_compile_options(${target_name} PRIVATE ${WERROR_FLAG}) # Take care of compiling BIFs. diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4c4621cb53..356a6eff4c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -546,9 +546,6 @@ set(zeek_SRCS ${CMAKE_CURRENT_BINARY_DIR}/DebugCmdConstants.h ${CMAKE_CURRENT_BINARY_DIR}/ZAM-MethodDecls.h) -# Add the above files to the list of clang tidy sources before adding the third party and HH -# sources. Also, the main_SRCS will get added to that list separately. -add_clang_tidy_files(${zeek_SRCS}) list(APPEND zeek_SRCS ${THIRD_PARTY_SRCS}) list(APPEND zeek_SRCS ${HH_SRCS}) list(APPEND zeek_SRCS ${MAIN_SRCS}) @@ -703,16 +700,6 @@ install( ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/doctest.h DESTINATION include/zeek/3rdparty) -# ############################################################################## -# Clang-tidy target now that we have all of the sources - -add_clang_tidy_files(${MAIN_SRCS}) - -# At this point we have included all of the cc files in src, all of the BinPAC -# (*.pac.cc) files, and most of the generated code for BIFs (not including -# *.bif.register.cc) -create_clang_tidy_target() - # ############################################################################## # CTest setup.