ΒΆinline internal::PolymorphicMatcher<
clang::ast_matchers::internal::
HasOverloadedOperatorNameMatcher,
void(::clang::ast_matchers::internal::
TypeList<CXXOperatorCallExpr,
FunctionDecl>),
std::vector<std::string>>
hasOverloadedOperatorName(llvm::StringRef Name)
inline internal::PolymorphicMatcher<
clang::ast_matchers::internal::
HasOverloadedOperatorNameMatcher,
void(::clang::ast_matchers::internal::
TypeList<CXXOperatorCallExpr,
FunctionDecl>),
std::vector<std::string>>
hasOverloadedOperatorName(llvm::StringRef Name)
Description
Matches overloaded operator names. Matches overloaded operator names specified in strings without the "operator" prefix: e.g. "<<". Given: \c cxxOperatorCallExpr(hasOverloadedOperatorName("<<"))) matches the specified line and\c cxxRecordDecl(hasMethod(hasOverloadedOperatorName("*"))) matches the declaration of \c A. Usable as: Matcher <CXXOperatorCallExpr >, Matcher <FunctionDecl >
Declared at: clang/include/clang/ASTMatchers/ASTMatchers.h:3063
Parameters
- llvm::StringRef Name