Skip to content

Commit 45944ce

Browse files
committed
Change hasName() to take const std::string&, as it was taking before rL219792.
llvm-svn: 219849
1 parent c8d7920 commit 45944ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/ASTMatchers/ASTMatchers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1591,7 +1591,7 @@ inline internal::Matcher<Stmt> sizeOfExpr(
15911591
/// \code
15921592
/// namespace a { namespace b { class X; } }
15931593
/// \endcode
1594-
inline internal::Matcher<NamedDecl> hasName(StringRef Name) {
1594+
inline internal::Matcher<NamedDecl> hasName(const std::string &Name) {
15951595
return internal::Matcher<NamedDecl>(new internal::HasNameMatcher(Name));
15961596
}
15971597

0 commit comments

Comments
 (0)