[PATCH] D76262: [NFC] Add UsedDeclVisitor

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 16 19:08:04 PDT 2020


rjmccall added a comment.

Thanks, looks good except for one oversight.



================
Comment at: clang/lib/Sema/UsedDeclVisitor.h:43
+      asImpl().visitUsedDecl(E->getMemberLoc(), D);
+    }
+  }
----------------
You need to recurse on the base expression here.  (And that's a good test case for your own patch!)


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

https://reviews.llvm.org/D76262





More information about the cfe-commits mailing list