From b75e7eae17a56a42f6e23f0f11d331ef260a51fe Mon Sep 17 00:00:00 2001 From: Don Hinton Date: Fri, 10 May 2019 18:27:09 +0000 Subject: [clang-tidy] Change the namespace for llvm checkers from 'llvm' to 'llvm_check' Summary: Change the namespace for llvm checkers from 'llvm' to 'llvm_check', and modify add_new_check.py and rename_check.py to support the new namespace. Checker, file, and directory names remain unchanged. Used new version of rename_check.py to make the change in existing llvm checkers, but had to fix LLVMTidyModule.cpp and LLVMModuleTest.cpp by hand. The changes made by rename_check.py are idempotent, so if accidentally run multiple times, it won't do anything. Reviewed By: aaron.ballman Tags: #clang, #clang-tools-extra Differential Revision: https://reviews.llvm.org/D60629 llvm-svn: 360450 --- clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp') diff --git a/clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp b/clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp index fb7b52a3815..f9954b5e201 100644 --- a/clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp +++ b/clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp @@ -17,7 +17,7 @@ namespace clang { namespace tidy { -namespace llvm { +namespace llvm_check { class LLVMModule : public ClangTidyModule { public: @@ -36,7 +36,7 @@ public: static ClangTidyModuleRegistry::Add X("llvm-module", "Adds LLVM lint checks."); -} // namespace llvm +} // namespace llvm_check // This anchor is used to force the linker to link in the generated object file // and thus register the LLVMModule. -- cgit v1.2.3