aboutsummaryrefslogtreecommitdiff
path: root/libcpp/include
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2020-11-18 08:27:16 -0800
committerNathan Sidwell <nathan@acm.org>2020-11-18 08:45:46 -0800
commit7ceb899e9343493f646434f74a149395f3913d9a (patch)
tree3cd22087dc51f0cdd8a7e4f60a47f7332601c2f3 /libcpp/include
parentdb87f19ae3cfc126fb39616515b57dea4df02e6d (diff)
downloadgcc-7ceb899e9343493f646434f74a149395f3913d9a.zip
gcc-7ceb899e9343493f646434f74a149395f3913d9a.tar.gz
gcc-7ceb899e9343493f646434f74a149395f3913d9a.tar.bz2
preprocessor: Add support for header unit translation
libcpp/ * files.c (struct _cpp_file): Add header_unit field. (_cpp_stack_file): Add header unit support. (cpp_find_header_unit): New. * include/cpplib.h (cpp_find_header_unit): Declare.
Diffstat (limited to 'libcpp/include')
-rw-r--r--libcpp/include/cpplib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h
index 75d4d0a..389af32 100644
--- a/libcpp/include/cpplib.h
+++ b/libcpp/include/cpplib.h
@@ -983,6 +983,9 @@ extern cpp_callbacks *cpp_get_callbacks (cpp_reader *) ATTRIBUTE_PURE;
extern void cpp_set_callbacks (cpp_reader *, cpp_callbacks *);
extern class mkdeps *cpp_get_deps (cpp_reader *) ATTRIBUTE_PURE;
+extern const char *cpp_find_header_unit (cpp_reader *, const char *file,
+ bool angle_p, location_t);
+
/* This function reads the file, but does not start preprocessing. It
returns the name of the original file; this is the same as the
input file, except for preprocessed input. This will generate at