r219849 - Change hasName() to take const std::string&, as it was taking before rL219792.

Samuel Benzaquen sbenza at google.com
Wed Oct 15 14:23:32 PDT 2014


Author: sbenza
Date: Wed Oct 15 16:23:31 2014
New Revision: 219849

URL: http://llvm.org/viewvc/llvm-project?rev=219849&view=rev
Log:
Change hasName() to take const std::string&, as it was taking before rL219792.

Modified:
    cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h

Modified: cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h?rev=219849&r1=219848&r2=219849&view=diff
==============================================================================
--- cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h (original)
+++ cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h Wed Oct 15 16:23:31 2014
@@ -1591,7 +1591,7 @@ inline internal::Matcher<Stmt> sizeOfExp
 /// \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));
 }
 





More information about the cfe-commits mailing list