summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/modernize/MakeUniqueCheck.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2017-05-17 14:39:39 +0000
committerAlexander Kornienko <alexfh@google.com>2017-05-17 14:39:39 +0000
commitc321a4f2b945c0b6c5f437ea9cdf79ea488253cd (patch)
treeb5b4bb1120ad8fe72e7b869b8e89411e5524c186 /clang-tools-extra/clang-tidy/modernize/MakeUniqueCheck.cpp
parenteab89eb85057ee794e94f8c1e9d1cb79b9e74436 (diff)
downloadbcm5719-llvm-c321a4f2b945c0b6c5f437ea9cdf79ea488253cd.tar.gz
bcm5719-llvm-c321a4f2b945c0b6c5f437ea9cdf79ea488253cd.zip
[clang-tidy] Replace matchesName with hasName where no regex is needed
llvm-svn: 303263
Diffstat (limited to 'clang-tools-extra/clang-tidy/modernize/MakeUniqueCheck.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/modernize/MakeUniqueCheck.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/clang-tools-extra/clang-tidy/modernize/MakeUniqueCheck.cpp b/clang-tools-extra/clang-tidy/modernize/MakeUniqueCheck.cpp
index cef8e9d9a5e..fea452f32a0 100644
--- a/clang-tools-extra/clang-tidy/modernize/MakeUniqueCheck.cpp
+++ b/clang-tools-extra/clang-tidy/modernize/MakeUniqueCheck.cpp
@@ -22,17 +22,17 @@ MakeUniqueCheck::MakeUniqueCheck(StringRef Name,
MakeUniqueCheck::SmartPtrTypeMatcher
MakeUniqueCheck::getSmartPointerTypeMatcher() const {
return qualType(hasDeclaration(classTemplateSpecializationDecl(
- matchesName("::std::unique_ptr"), templateArgumentCountIs(2),
+ hasName("::std::unique_ptr"), templateArgumentCountIs(2),
hasTemplateArgument(
0, templateArgument(refersToType(qualType().bind(PointerType)))),
hasTemplateArgument(
- 1, templateArgument(refersToType(
- qualType(hasDeclaration(classTemplateSpecializationDecl(
- matchesName("::std::default_delete"),
- templateArgumentCountIs(1),
- hasTemplateArgument(
- 0, templateArgument(refersToType(qualType(
- equalsBoundNode(PointerType))))))))))))));
+ 1,
+ templateArgument(refersToType(
+ qualType(hasDeclaration(classTemplateSpecializationDecl(
+ hasName("::std::default_delete"), templateArgumentCountIs(1),
+ hasTemplateArgument(
+ 0, templateArgument(refersToType(
+ qualType(equalsBoundNode(PointerType))))))))))))));
}
} // namespace modernize
OpenPOWER on IntegriCloud