[PATCH] D96113: [ASTMatchers] Fix hasParent while ignoring unwritten nodes

Stephen Kelly via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 17 12:49:09 PST 2021


steveire added inline comments.


================
Comment at: clang/lib/AST/ParentMapContext.cpp:174
+        {
+          auto AncestorNodes = matchParents<VarDecl, DeclStmt, CXXForRangeStmt>(
+              ParentList, this);
----------------
aaron.ballman wrote:
> Not needing to be solved in this patch, but do we eventually need to do something for `ObjCForCollectionStmt` the same as we do for `CXXForRangeStmt`?
Perhaps. I'm not familiar with it.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96113/new/

https://reviews.llvm.org/D96113



More information about the cfe-commits mailing list