https://github.com/zeyi2 created https://github.com/llvm/llvm-project/pull/197384
None >From 0f5c7e7b61c6717c021ab42d1340b34107d45264 Mon Sep 17 00:00:00 2001 From: Zeyi Xu <[email protected]> Date: Wed, 13 May 2026 15:55:59 +0800 Subject: [PATCH] [clang-tidy] Remove hicpp module [5/5] --- clang-tools-extra/clang-tidy/CMakeLists.txt | 2 -- .../clang-tidy/ClangTidyForceLinker.h | 5 --- .../clang-tidy/hicpp/CMakeLists.txt | 33 ------------------- .../clang-tidy/hicpp/HICPPTidyModule.cpp | 32 ------------------ .../clang-tidy/hicpp/LICENSE.TXT | 13 -------- 5 files changed, 85 deletions(-) delete mode 100644 clang-tools-extra/clang-tidy/hicpp/CMakeLists.txt delete mode 100644 clang-tools-extra/clang-tidy/hicpp/HICPPTidyModule.cpp delete mode 100644 clang-tools-extra/clang-tidy/hicpp/LICENSE.TXT diff --git a/clang-tools-extra/clang-tidy/CMakeLists.txt b/clang-tools-extra/clang-tidy/CMakeLists.txt index 153356245cfd1..9ee9255fbe17b 100644 --- a/clang-tools-extra/clang-tidy/CMakeLists.txt +++ b/clang-tools-extra/clang-tidy/CMakeLists.txt @@ -62,7 +62,6 @@ add_subdirectory(custom) add_subdirectory(darwin) add_subdirectory(fuchsia) add_subdirectory(google) -add_subdirectory(hicpp) add_subdirectory(linuxkernel) add_subdirectory(llvm) add_subdirectory(llvmlibc) @@ -89,7 +88,6 @@ set(ALL_CLANG_TIDY_CHECKS clangTidyDarwinModule clangTidyFuchsiaModule clangTidyGoogleModule - clangTidyHICPPModule clangTidyLinuxKernelModule clangTidyLLVMModule clangTidyLLVMLibcModule diff --git a/clang-tools-extra/clang-tidy/ClangTidyForceLinker.h b/clang-tools-extra/clang-tidy/ClangTidyForceLinker.h index 79244668856c1..2450384016e25 100644 --- a/clang-tools-extra/clang-tidy/ClangTidyForceLinker.h +++ b/clang-tools-extra/clang-tidy/ClangTidyForceLinker.h @@ -75,11 +75,6 @@ extern volatile int GoogleModuleAnchorSource; [[maybe_unused]] static int GoogleModuleAnchorDestination = GoogleModuleAnchorSource; -// This anchor is used to force the linker to link the HICPPModule. -extern volatile int HICPPModuleAnchorSource; -[[maybe_unused]] static int HICPPModuleAnchorDestination = - HICPPModuleAnchorSource; - // This anchor is used to force the linker to link the LinuxKernelModule. extern volatile int LinuxKernelModuleAnchorSource; [[maybe_unused]] static int LinuxKernelModuleAnchorDestination = diff --git a/clang-tools-extra/clang-tidy/hicpp/CMakeLists.txt b/clang-tools-extra/clang-tidy/hicpp/CMakeLists.txt deleted file mode 100644 index 613b2e5962668..0000000000000 --- a/clang-tools-extra/clang-tidy/hicpp/CMakeLists.txt +++ /dev/null @@ -1,33 +0,0 @@ -set(LLVM_LINK_COMPONENTS - FrontendOpenMP - Support - ) - -add_clang_library(clangTidyHICPPModule STATIC - HICPPTidyModule.cpp - - LINK_LIBS - clangTidy - clangTidyBugproneModule - clangTidyCppCoreGuidelinesModule - clangTidyGoogleModule - clangTidyMiscModule - clangTidyModernizeModule - clangTidyPerformanceModule - clangTidyPortabilityModule - clangTidyReadabilityModule - clangTidyUtils - - DEPENDS - omp_gen - ClangDriverOptions - ) - -clang_target_link_libraries(clangTidyHICPPModule - PRIVATE - clangAST - clangASTMatchers - clangBasic - clangLex - clangSerialization - ) diff --git a/clang-tools-extra/clang-tidy/hicpp/HICPPTidyModule.cpp b/clang-tools-extra/clang-tidy/hicpp/HICPPTidyModule.cpp deleted file mode 100644 index 3b6e65bfe60f7..0000000000000 --- a/clang-tools-extra/clang-tidy/hicpp/HICPPTidyModule.cpp +++ /dev/null @@ -1,32 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include "../ClangTidyModule.h" - -namespace clang::tidy { -namespace hicpp { -namespace { - -class HICPPModule : public ClangTidyModule { -public: - void addCheckFactories(ClangTidyCheckFactories &) override {} -}; - -} // namespace - -// Register the HICPPModule using this statically initialized variable. -static ClangTidyModuleRegistry::Add<HICPPModule> - X("hicpp-module", "Adds High-Integrity C++ checks."); - -} // namespace hicpp - -// This anchor is used to force the linker to link in the generated object file -// and thus register the HICPPModule. -volatile int HICPPModuleAnchorSource = 0; // NOLINT(misc-use-internal-linkage) - -} // namespace clang::tidy diff --git a/clang-tools-extra/clang-tidy/hicpp/LICENSE.TXT b/clang-tools-extra/clang-tidy/hicpp/LICENSE.TXT deleted file mode 100644 index 2f30d1fa08f5e..0000000000000 --- a/clang-tools-extra/clang-tidy/hicpp/LICENSE.TXT +++ /dev/null @@ -1,13 +0,0 @@ ------------------------------------------------------------------------------- -clang-tidy High-Integrity C++ Files ------------------------------------------------------------------------------- -All clang-tidy files are licensed under the same terms as the rest of the LLVM -project with the following additions: - -Any file referencing a High-Integrity C++ Coding guideline: - -HIC++ Coding Standard as created by PRQA. - -Please see -https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/conditions-of-use -for more information. _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
