================
@@ -105,6 +105,16 @@ using BoundNodesMap =
::clang::ast_matchers::internal::BoundNodesMap;
// Matches the plain `id` type.
AST_MATCHER(QualType, isObjCIdType) { return Node->isObjCIdType(); }
+// Like equalsBoundNode, but compares canonical declarations so that different
+// redeclarations of the same class (e.g. a forward declaration and the
+// definition) are treated as the same declaration.
+AST_MATCHER_P(Decl, isSameDeclAsBoundNode, std::string, ID) {
----------------
steakhal wrote:
I'd suggest a more specific name, something like
`hasSameCanonicalDeclAsBoundNode`
https://github.com/llvm/llvm-project/pull/231833
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits