preprocessor: new callbacks
authorNathan Sidwell <nathan@acm.org>
Tue, 17 Nov 2020 16:16:50 +0000 (08:16 -0800)
committerNathan Sidwell <nathan@acm.org>
Tue, 17 Nov 2020 16:22:02 +0000 (08:22 -0800)
commitb196e76aecb675b9f6a1e4f15419606621459401
treec5fe1672d108637c16eebda4a74b15d16b590218
parentecf65330c11544ebf35e198087b4a42be089c620
preprocessor: new callbacks

These two callbacks are needed for C++ modules.  The first is for
handling macros from header-units.  These are resolved lazily.  The
second is for include-translation -- whether a #include gets turned
into a header-unit import.

libcpp/
* include/cpplib.h (struct cpp_callbacks): Add
user_deferred_macro & translate_include.
libcpp/include/cpplib.h