ΒΆinline internal::Matcher<NamedDecl> hasName(
llvm::StringRef Name)
inline internal::Matcher<NamedDecl> hasName(
llvm::StringRef Name)
Description
Matches NamedDecl nodes that have the specified name. Supports specifying enclosing namespaces or classes by prefixing the name with ' <enclosing >::'. Does not match typedefs of an underlying type with the given name. Example matches X (Name == "X") Example matches X (Name is one of "::a::b::X", "a::b::X", "b::X", "X")
Declared at: clang/include/clang/ASTMatchers/ASTMatchers.h:3000
Parameters
- llvm::StringRef Name