103 const ast_matchers::MatchFinder::MatchResult &Result) {
114 if (
const auto *FuncRef = Result.Nodes.getNodeAs<DeclRefExpr>(
"func_ref")) {
115 const auto *DC = Result.Nodes.getNodeAs<Decl>(
"dc");
117 LLVM_DEBUG(llvm::dbgs() <<
"Find helper function usage: "
118 << FuncRef->getDecl()->getDeclName() <<
" ("
119 << FuncRef->getDecl() <<
")\n");
123 }
else if (
const auto *UsedClass =
124 Result.Nodes.getNodeAs<CXXRecordDecl>(
"used_class")) {
125 const auto *DC = Result.Nodes.getNodeAs<Decl>(
"dc");
127 LLVM_DEBUG(llvm::dbgs()
128 <<
"Find helper class usage: " << UsedClass->getDeclName()
129 <<
" (" << UsedClass <<
")\n");