[PATCH] add DECL_SOURCE_COLUMN to tree.h (trivial)

Rüdiger Sonderfeld ruediger@c-plusplus.de
Wed Jun 20 18:04:00 GMT 2012


Hello,
I'm currently writing a plugin for GCC and I need to extract the column of a 
declaration. There exists DECL_SOURCE_FILE/LINE already and for consistency 
reasons and ease of use I've added a DECL_SOURCE_COLUMN macro.

The patch is extremely trivial and probably doesn't need copyright assignment. 
However I have signed copyright assignment for Emacs and maybe that will work 
too (not sure if this has to be signed for every project).

gcc/ChangeLog

2012-06-20  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>

	* tree.h (DECL_SOURCE_COLUMN): New accessor

Regards,
Rüdiger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: decl_source_column.diff
Type: text/x-patch
Size: 542 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120620/6829631a/attachment.bin>


More information about the Gcc-patches mailing list