summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/misc/UnusedRAII.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/UnusedRAII.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/UnusedRAII.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/misc/UnusedRAII.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/misc/UnusedRAII.cpp b/clang-tools-extra/clang-tidy/misc/UnusedRAII.cpp
index 41327b65bb5..c993ab335f8 100644
--- a/clang-tools-extra/clang-tidy/misc/UnusedRAII.cpp
+++ b/clang-tools-extra/clang-tidy/misc/UnusedRAII.cpp
@@ -22,6 +22,7 @@ AST_MATCHER(CXXRecordDecl, hasUserDeclaredDestructor) {
} // namespace ast_matchers
namespace tidy {
+namespace misc {
void UnusedRAIICheck::registerMatchers(MatchFinder *Finder) {
// Look for temporaries that are constructed in-place and immediately
@@ -79,5 +80,6 @@ void UnusedRAIICheck::check(const MatchFinder::MatchResult &Result) {
Replacement);
}
+} // namespace misc
} // namespace tidy
} // namespace clang
OpenPOWER on IntegriCloud