28 const QualType &Node, ast_matchers::internal::ASTMatchFinder *Finder,
29 ast_matchers::internal::BoundNodesTreeBuilder *Builder)
const {
30 if (NameMatchers.empty())
33 PrintingPolicy PrintingPolicyWithSuppressedTag(
34 Finder->getASTContext().getLangOpts());
35 PrintingPolicyWithSuppressedTag.PrintAsCanonical = CanonicalTypes;
36 PrintingPolicyWithSuppressedTag.FullyQualifiedName =
true;
37 PrintingPolicyWithSuppressedTag.SuppressScope =
false;
38 PrintingPolicyWithSuppressedTag.SuppressTagKeyword =
true;
39 PrintingPolicyWithSuppressedTag.SuppressUnwrittenScope =
true;
40 std::string TypeName =
41 Node.getUnqualifiedType().getAsString(PrintingPolicyWithSuppressedTag);
43 return llvm::any_of(NameMatchers, [&TypeName](
const llvm::Regex &NM) {
44 return NM.isValid() && NM.match(TypeName);