[PATCH] D91047: Add a call super attribute plugin example

Yafei Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 10 04:16:37 PST 2020


psionic12 added inline comments.


================
Comment at: clang/examples/CallSuperAttribute/CallSuperAttrInfo.cpp:133
+  PluginASTAction::ActionType getActionType() override {
+    return AddBeforeMainAction;
+  }
----------------
`AddAfterMainAction` will get run after IR codes were generated, I found this when writing test cases, so it would be better to use `AddBeforeMainAction`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D91047



More information about the cfe-commits mailing list