aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/plugins.texi
diff options
context:
space:
mode:
authorRomain Geissler <romain.geissler@gmail.com>2011-08-11 15:57:38 +0000
committerDiego Novillo <dnovillo@gcc.gnu.org>2011-08-11 11:57:38 -0400
commit4309e92c980377d6f2c2ba2bb224f254b3cda49f (patch)
treef0e5cd42f4834ff1cb97931ca420f0b81dd28570 /gcc/doc/plugins.texi
parent25aa059e63fe5b759e18fdcb7cac4b51868a44d0 (diff)
downloadgcc-4309e92c980377d6f2c2ba2bb224f254b3cda49f.zip
gcc-4309e92c980377d6f2c2ba2bb224f254b3cda49f.tar.gz
gcc-4309e92c980377d6f2c2ba2bb224f254b3cda49f.tar.bz2
plugin.def: Add event for finish_decl.
2011-08-11 Romain Geissler <romain.geissler@gmail.com> Brian Hackett <bhackett1024@gmail.com> gcc/ChangeLog: * plugin.def: Add event for finish_decl. * plugin.c (register_callback, invoke_plugin_callbacks): Same. * c-decl.c (finish_decl): Invoke callbacks on above event. * doc/plugins.texi: Document above event. gcc/cp/ChangeLog: * decl.c (cp_finish_decl): Invoke callbacks on finish_decl event. gcc/testsuite/ChangeLog: * g++.dg/plugin/decl_plugin.c: New. * g++.dg/plugin/decl-plugin-test.C: New. * g++.dg/plugin/plugin.exp: Add above testcase. Co-Authored-By: Brian Hackett <bhackett1024@gmail.com> From-SVN: r177674
Diffstat (limited to 'gcc/doc/plugins.texi')
-rw-r--r--gcc/doc/plugins.texi1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/doc/plugins.texi b/gcc/doc/plugins.texi
index faee13e..398ebf0 100644
--- a/gcc/doc/plugins.texi
+++ b/gcc/doc/plugins.texi
@@ -151,6 +151,7 @@ enum plugin_event
@{
PLUGIN_PASS_MANAGER_SETUP, /* To hook into pass manager. */
PLUGIN_FINISH_TYPE, /* After finishing parsing a type. */
+ PLUGIN_FINISH_DECL, /* After finishing parsing a declaration. */
PLUGIN_FINISH_UNIT, /* Useful for summary processing. */
PLUGIN_PRE_GENERICIZE, /* Allows to see low level AST in C and C++ frontends. */
PLUGIN_FINISH, /* Called before GCC exits. */