aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorRĂ¼diger Sonderfeld <ruediger@c-plusplus.de>2012-06-20 18:03:10 +0000
committerDiego Novillo <dnovillo@gcc.gnu.org>2012-06-20 14:03:10 -0400
commit19c1aa2ddf9d9afccd295b5bc5266bbd7d51997c (patch)
tree1bdfdd2ea5b6ba3c4b2b1dadde219d84a3760823 /gcc/tree.h
parentbafda72341d399da97197e738167a8606bc45e54 (diff)
downloadgcc-19c1aa2ddf9d9afccd295b5bc5266bbd7d51997c.zip
gcc-19c1aa2ddf9d9afccd295b5bc5266bbd7d51997c.tar.gz
gcc-19c1aa2ddf9d9afccd295b5bc5266bbd7d51997c.tar.bz2
Add DECL_SOURCE_COLUMN.
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. 2012-06-20 RĂ¼diger Sonderfeld <ruediger@c-plusplus.de> * tree.h (DECL_SOURCE_COLUMN): New accessor From-SVN: r188841
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 1539bec..8bd0580 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -2670,6 +2670,7 @@ struct function;
(DECL_MINIMAL_CHECK (NODE)->decl_minimal.locus)
#define DECL_SOURCE_FILE(NODE) LOCATION_FILE (DECL_SOURCE_LOCATION (NODE))
#define DECL_SOURCE_LINE(NODE) LOCATION_LINE (DECL_SOURCE_LOCATION (NODE))
+#define DECL_SOURCE_COLUMN(NODE) LOCATION_COLUMN (DECL_SOURCE_LOCATION (NODE))
#define DECL_IS_BUILTIN(DECL) \
(DECL_SOURCE_LOCATION (DECL) <= BUILTINS_LOCATION)