
Felipe Magno de Almeida wrote:
On 5/15/06, Stefan Seefeld <seefeld@sympatico.ca> wrote:
Felipe Magno de Almeida wrote:
I would like to be able to preprocess a file without having all headers. I'm not interested in the output of the preprocessing, I'm interested in analyzing the include directives and the conditionals of the file. Conditionals generally, and include directives sometimes, depend on preprocessing instructions (macros) processed prior to the current directive. How can you analyze them if you can't be sure you know the value of the macros they are referring to ?
I'll preprocess both paths.
Oh, so you want to recognize an include directive without actually processing the included file ? What if you have #include "foo.hh" #include BAR and the value of BAR depends on the preprocessor's state after having (pre-)processed foo.hh ? Regards, Stefan