summaryrefslogtreecommitdiff
path: root/gcc/input.h
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2014-08-15 16:27:38 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2014-08-15 16:27:38 +0000
commit86d2cad9064326411c933cd67313e602f0828419 (patch)
tree33b0aa533e45e7530cc0f51009ab80fa795e6bd8 /gcc/input.h
parent8add4868b501067184e8f6d7bead8e982de7752f (diff)
input.h (in_system_header_at): Add comment.
2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org> * input.h (in_system_header_at): Add comment. From-SVN: r214028
Diffstat (limited to 'gcc/input.h')
-rw-r--r--gcc/input.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/input.h b/gcc/input.h
index 1def793ae30..a4fddf0a3b0 100644
--- a/gcc/input.h
+++ b/gcc/input.h
@@ -59,8 +59,17 @@ extern location_t input_location;
((tree) ((IS_ADHOC_LOC (LOC)) ? get_data_from_adhoc_loc (line_table, (LOC)) \
: NULL))
+/* Return a positive value if LOCATION is the locus of a token that is
+ located in a system header, O otherwise. It returns 1 if LOCATION
+ is the locus of a token that is located in a system header, and 2
+ if LOCATION is the locus of a token located in a C system header
+ that therefore needs to be extern "C" protected in C++.
+
+ Note that this function returns 1 if LOCATION belongs to a token
+ that is part of a macro replacement-list defined in a system
+ header, but expanded in a non-system file. */
#define in_system_header_at(LOC) \
- ((linemap_location_in_system_header_p (line_table, LOC)))
+ (linemap_location_in_system_header_p (line_table, LOC))
void dump_line_table_statistics (void);