[cfe-dev] Macro history (de-)serialization implementation, need help figuring out some things

Alexander Kornienko alexfh at google.com
Fri Aug 31 16:36:55 PDT 2012


Hi,

I have a quick-and-dirty implementation of macro history
(de-)serialization, but it is still not fully working. In particular, I
still have to teach reading code to distinguish between identifiers that
have macro definition currently, and those that had one before. I already
taught ASTWriter to care about currently undefined macros, but I had to add
HadMacro flag in IdentifierInfo for this purpose (hopefully there was one
spare bit in 32-bit word for this).

To complete this I have to gain much deeper understanding of things I'm
changing, so I'd appreciate if someone explained me several things (or
pointed me to the documentation if it exists): structure of PCH files and
what is stored there, the idea behind chained PCHs and how they work, what
are public/non-public macros (is it related to Objective C only?).

I'm writing this mainly to Douglas and Richard, as they have context of
what I'm doing, but maybe someone else can help me with these things.

Thanks in advance!

--
Regards,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120831/b1a458c7/attachment.html>


More information about the cfe-dev mailing list