[PATCH] D42071: [Sema] Add a callback in VisibleDeclConsumer allowing client to know which DeclContext is going to visit.

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 15 08:36:03 PST 2018

ilya-biryukov added inline comments.

Comment at: include/clang/Sema/Lookup.h:791
+  /// \param Ctx the context which Sema begins to visit.
+  virtual void BeginVisitContext(DeclContext *Ctx) {};
Maybe rename it to `VisitedContext` ? Seems more in-line with `FoundDecl`.
`BeginVisitContext` also suggest there should be `EndVisitContext`

  rC Clang


More information about the cfe-commits mailing list