2#include "clang/AST/DeclTemplate.h"
3#include "clang/AST/PrettyPrinter.h"
4#include "clang/AST/Type.h"
5#include "clang/Basic/SourceManager.h"
11 : entry_method_decl_(d), os_(os), notify_call_{nullptr} {
23 LangOpts.CPlusPlus =
true;
24 PrintingPolicy Policy(LangOpts);
26 auto direct_callee{e->getDirectCallee()};
27 if (direct_callee !=
nullptr) {
28 if (direct_callee->getNameInfo().getAsString() == std::string(
"notify") &&
29 e->getNumArgs() <= 2) {
std::vector< clang::CallExpr * > NotifyCallListType
clang::CXXMethodDecl * entry_method_decl_
bool shouldVisitTemplateInstantiations() const
NotifyCallListType notify_call_list_
FindNotify(clang::CXXMethodDecl *, llvm::raw_ostream &)
virtual bool VisitCallExpr(clang::CallExpr *expr)
clang::CXXMethodDecl * getEntryMethod() const
NotifyCallListType getNotifyCallList() const
Clang forward declarations.