From: Stefan Seefeld (seefeld_at_[hidden])
Date: 2006-05-15 14:02:51
Felipe Magno de Almeida wrote:
> On 5/15/06, Stefan Seefeld <seefeld_at_[hidden]> 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
and the value of BAR depends on the preprocessor's state after having
(pre-)processed foo.hh ?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk