[cfe-dev] Extracting preprocessor documentation
Richard
legalize at xmission.com
Tue Feb 10 14:48:45 PST 2015
In article <CAMDzUtzsoUL4wZs-iTsthjoUnc03SLsYjZYgpQrVm5-q0K8krg at mail.gmail.com>,
Guilherme <guibufolo+llvm at gmail.com> writes:
> Is it possible to do this from a theoretical point of view? The
> problem i see is that preprocessing is done in stage 4 where there is
> no syntax tree. It is built in stage 7.
>
> Would there still be a way to annotate this in the syntax tree?
If I understood the referenced slide deck correctly, they gathered
their own comment information as parsing proceeded and then
back-filled it onto the AST after it was built.
Wouldn't that work for macro definitions too?
--
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
The Computer Graphics Museum <http://ComputerGraphicsMuseum.org>
The Terminals Wiki <http://terminals.classiccmp.org>
Legalize Adulthood! (my blog) <http://LegalizeAdulthood.wordpress.com>
More information about the cfe-dev
mailing list