Change hasName() to take const std::string&, as it was taking before rL219792.
authorSamuel Benzaquen <sbenza@google.com>
Wed, 15 Oct 2014 21:23:31 +0000 (21:23 +0000)
committerSamuel Benzaquen <sbenza@google.com>
Wed, 15 Oct 2014 21:23:31 +0000 (21:23 +0000)
llvm-svn: 219849

clang/include/clang/ASTMatchers/ASTMatchers.h

index 335e91a..a3adbdc 100644 (file)
@@ -1591,7 +1591,7 @@ inline internal::Matcher<Stmt> sizeOfExpr(
 /// \code
 ///   namespace a { namespace b { class X; } }
 /// \endcode
-inline internal::Matcher<NamedDecl> hasName(StringRef Name) {
+inline internal::Matcher<NamedDecl> hasName(const std::string &Name) {
   return internal::Matcher<NamedDecl>(new internal::HasNameMatcher(Name));
 }