summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2015-03-02 12:39:18 +0000
committerAlexander Kornienko <alexfh@google.com>2015-03-02 12:39:18 +0000
commit0a6ce9f4e1429b001b6fb5feabc60d23cc0e5ef8 (patch)
tree88cef75f59cc1d10ab1cf9c88d1783b48d1cfd79 /clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp
parent6992d5dcc56838ed5af0b53e6ee89948ef5c33c0 (diff)
downloadbcm5719-llvm-0a6ce9f4e1429b001b6fb5feabc60d23cc0e5ef8.tar.gz
bcm5719-llvm-0a6ce9f4e1429b001b6fb5feabc60d23cc0e5ef8.zip
[clang-tidy] Refactor: Move llvm clang-tidy checks to namespace clang::tidy::llvm
clang-tidy checks are organized into modules. This refactoring moves the llvm module checks to clang::tidy::llvm http://reviews.llvm.org/D7995 Patch by Richard Thomson! llvm-svn: 230952
Diffstat (limited to 'clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp b/clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp
index c9c71842460..ea46ca93841 100644
--- a/clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp
+++ b/clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp
@@ -17,6 +17,7 @@
namespace clang {
namespace tidy {
+namespace llvm {
class LLVMModule : public ClangTidyModule {
public:
@@ -33,6 +34,8 @@ public:
static ClangTidyModuleRegistry::Add<LLVMModule> X("llvm-module",
"Adds LLVM lint checks.");
+} // namespace llvm
+
// This anchor is used to force the linker to link in the generated object file
// and thus register the LLVMModule.
volatile int LLVMModuleAnchorSource = 0;
OpenPOWER on IntegriCloud