On 11/3/20 2:13 PM, Nathan Sidwell wrote: > I needed a set of hook interfacing the preprocessor to the language. > they get called from pieces in c-family. > > preprocess_main_file: we need to know when any forced headers have > been parsed in order to deal with linemaps and macro visibility > > preprocess_options: A way for the language to adjust any preprocessor > options and alter direct callbacks > > preprocess_undef: We need visibility of #undefs > > preprocess_deferred_macro: macros from header-units are instantiated > lazily. This is the hook for the preprocessor to get that done. > > preprocess_token: Even in -E processing, we need to observe the token > stream in order to load up the macro tables of header units. > > c-family's c-lex.c, c-opts.c & c-ppoutput.c get to call these hooks in > various cases
LGTM. jeff