Hi,
This patch gives me access to the list of consumers, which I find very handy in plugin development. For example, this allows my plugin to put itself in a preferred position among the rest of the consumers.
  It'd be great if it becomes a part of the mainline.
Many thanks,
Vassil
Index: tools/clang/include/clang/Frontend/MultiplexConsumer.h
===================================================================
--- tools/clang/include/clang/Frontend/MultiplexConsumer.h	(revision 209839)
+++ tools/clang/include/clang/Frontend/MultiplexConsumer.h	(working copy)
@@ -52,6 +52,8 @@
   void InitializeSema(Sema &S) override;
   void ForgetSema() override;
 
+  std::vector<ASTConsumer*>& getConsumers() { return Consumers; }
+
 private:
   std::vector<ASTConsumer*> Consumers;  // Owns these.
   std::unique_ptr<MultiplexASTMutationListener> MutationListener;
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to