summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/misc/UndelegatedConstructor.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2015-03-02 12:25:03 +0000
committerAlexander Kornienko <alexfh@google.com>2015-03-02 12:25:03 +0000
commit2b312420aadfc3f0e0ff24bd95574ab9f81b7f24 (patch)
tree1a2b1f0672c44294f931b1a149e3354b4ae725f5 /clang-tools-extra/clang-tidy/misc/UndelegatedConstructor.cpp
parent39ccabe500fb7af76143bf5b55a01f0767044fdc (diff)
downloadbcm5719-llvm-2b312420aadfc3f0e0ff24bd95574ab9f81b7f24.tar.gz
bcm5719-llvm-2b312420aadfc3f0e0ff24bd95574ab9f81b7f24.zip
[clang-tidy] Refactor: Move misc clang-tidy checks to namespace clang::tidy::misc
clang-tidy checks are organized into modules. This refactoring moves the misc module checks into the namespace clang::tidy::misc http://reviews.llvm.org/D7996 Patch by Richard Thomson! llvm-svn: 230950
Diffstat (limited to 'clang-tools-extra/clang-tidy/misc/UndelegatedConstructor.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/misc/UndelegatedConstructor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/misc/UndelegatedConstructor.cpp b/clang-tools-extra/clang-tidy/misc/UndelegatedConstructor.cpp
index 143c27a98b0..3fabbe69bb3 100644
--- a/clang-tools-extra/clang-tidy/misc/UndelegatedConstructor.cpp
+++ b/clang-tools-extra/clang-tidy/misc/UndelegatedConstructor.cpp
@@ -46,6 +46,7 @@ AST_MATCHER_P(CXXRecordDecl, baseOfBoundNode, std::string, ID) {
} // namespace ast_matchers
namespace tidy {
+namespace misc {
void UndelegatedConstructorCheck::registerMatchers(MatchFinder *Finder) {
// We look for calls to constructors of the same type in constructors. To do
@@ -70,5 +71,6 @@ void UndelegatedConstructorCheck::check(const MatchFinder::MatchResult &Result)
"A temporary object is created here instead");
}
+} // namespace misc
} // namespace tidy
} // namespace clang
OpenPOWER on IntegriCloud