[PATCH] D5767: Template Instantiation Observer + a few other templight-related changes

Manuel Klimek via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 17 15:18:18 PDT 2017


klimek added a comment.

Whee, thanks for driving this, much appreciated :D



================
Comment at: include/clang/FrontendTool/Utils.h:25
+
+std::unique_ptr<FrontendAction> CreateFrontendAction(CompilerInstance &CI);
 
----------------
Please add a comment now that this is exported.


================
Comment at: include/clang/Sema/TemplateInstCallbacks.h:32
+  /// \brief Called before doing AST-parsing.
+  void initialize(const Sema &TheSema) {
+    this->initializeImpl(TheSema);
----------------
Note sure how others think about this, but I'd have expected the design to have:
a) a pure interface
b) an implementation TemplateInstantiationCallbacksCollection or somesuch that has a vector of TICs and forwards calls on them


https://reviews.llvm.org/D5767





More information about the cfe-commits mailing list