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