summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp
diff options
context:
space:
mode:
authorDon Hinton <hintonda@gmail.com>2019-05-10 18:27:09 +0000
committerDon Hinton <hintonda@gmail.com>2019-05-10 18:27:09 +0000
commitb75e7eae17a56a42f6e23f0f11d331ef260a51fe (patch)
tree900f5fe6e70dff7769be881e9a5a6c53c9b9d22f /clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp
parent0c55985bbb407633eedde126a296438696866780 (diff)
downloadbcm5719-llvm-b75e7eae17a56a42f6e23f0f11d331ef260a51fe.tar.gz
bcm5719-llvm-b75e7eae17a56a42f6e23f0f11d331ef260a51fe.zip
[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
Diffstat (limited to 'clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp4
1 files changed, 2 insertions, 2 deletions
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<LLVMModule> 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.
OpenPOWER on IntegriCloud