summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2017-07-20 12:40:33 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2017-07-24 17:23:54 -0400
commit8a98ba2a6cbeddca58e3bba61bbe67946f4c438e (patch)
treea7cf046698682070fa2f670f6f816ad92509b8d1
parentdb2ef60f362d4414a4397e3a1e9a195f8670773a (diff)
downloadgcc-dmalcolm/lsp-v1.0.tar.gz
FIXME: C: add c_expr::get_locationdmalcolm/lsp-v1.0
-rw-r--r--gcc/c/c-tree.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c/c-tree.h b/gcc/c/c-tree.h
index 9455fcf386d..86a22fad14c 100644
--- a/gcc/c/c-tree.h
+++ b/gcc/c/c-tree.h
@@ -148,6 +148,11 @@ struct c_expr
of this expression. */
location_t get_start () const { return src_range.m_start; }
location_t get_finish () const { return src_range.m_finish; }
+ location_t get_location () const
+ {
+ return make_location (src_range.m_start, src_range.m_start,
+ src_range.m_finish);
+ }
/* Set the value to error_mark_node whilst ensuring that src_range
is initialized. */