aboutsummaryrefslogtreecommitdiff
path: root/gcc/input.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/input.h')
-rw-r--r--gcc/input.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/input.h b/gcc/input.h
index e95bd3c..fe80605 100644
--- a/gcc/input.h
+++ b/gcc/input.h
@@ -77,6 +77,11 @@ extern location_t input_location;
comes from a macro expansion, O otherwise. */
#define from_macro_expansion_at(LOC) \
((linemap_location_from_macro_expansion_p (line_table, LOC)))
+/* Return a positive value if LOCATION is the locus of a token that comes from
+ a macro definition, O otherwise. This differs from from_macro_expansion_at
+ in its treatment of macro arguments, for which this returns false. */
+#define from_macro_definition_at(LOC) \
+ ((linemap_location_from_macro_definition_p (line_table, LOC)))
static inline location_t
get_pure_location (location_t loc)