summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/google/ExplicitConstructorCheck.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2015-03-05 13:46:14 +0000
committerAlexander Kornienko <alexfh@google.com>2015-03-05 13:46:14 +0000
commited824e0e4b1f45159aafd032421e3c81ab76db1b (patch)
tree745e530472a2086e1a3f7224f1133a0099fd1b4c /clang-tools-extra/clang-tidy/google/ExplicitConstructorCheck.cpp
parent18ca267d7a88583c6a9b84affcd0e2db99389d74 (diff)
downloadbcm5719-llvm-ed824e0e4b1f45159aafd032421e3c81ab76db1b.tar.gz
bcm5719-llvm-ed824e0e4b1f45159aafd032421e3c81ab76db1b.zip
[clang-tidy] Refactor: Move google clang-tidy checks to namespace clang::tidy::google
http://reviews.llvm.org/D7994 Patch by Richard Thomson! llvm-svn: 231364
Diffstat (limited to 'clang-tools-extra/clang-tidy/google/ExplicitConstructorCheck.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/google/ExplicitConstructorCheck.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/google/ExplicitConstructorCheck.cpp b/clang-tools-extra/clang-tidy/google/ExplicitConstructorCheck.cpp
index c41a6adc094..b880c96f3d9 100644
--- a/clang-tools-extra/clang-tidy/google/ExplicitConstructorCheck.cpp
+++ b/clang-tools-extra/clang-tidy/google/ExplicitConstructorCheck.cpp
@@ -17,6 +17,7 @@ using namespace clang::ast_matchers;
namespace clang {
namespace tidy {
+namespace google {
void ExplicitConstructorCheck::registerMatchers(MatchFinder *Finder) {
Finder->addMatcher(constructorDecl(unless(isInstantiated())).bind("ctor"),
@@ -117,5 +118,6 @@ void ExplicitConstructorCheck::check(const MatchFinder::MatchResult &Result) {
<< FixItHint::CreateInsertion(Loc, "explicit ");
}
+} // namespace google
} // namespace tidy
} // namespace clang
OpenPOWER on IntegriCloud