<br><br><div class="gmail_quote">On Tue, Sep 4, 2012 at 4:30 PM, Alexander Kornienko <span dir="ltr"><<a href="mailto:alexfh@google.com" target="_blank">alexfh@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Sat, Sep 1, 2012 at 12:50 PM, Matthieu Monrocq <span dir="ltr"><<a href="mailto:matthieu.monrocq@gmail.com" target="_blank">matthieu.monrocq@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div>On Sat, Sep 1, 2012 at 1:36 AM, Alexander Kornienko <span dir="ltr"><<a href="mailto:alexfh@google.com" target="_blank">alexfh@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Hi,</div><div><br></div><div>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).</div>
<div><br></div><div>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?).</div>
<div><br></div></blockquote></div><div><br>public/non-public macros (sorry, don't know about PCH):<br><br>I think it was introduced by Doug when he worked on the module system (hopefully something for C++1x). The idea was that most macros could be contained within a module (private macros) and only a specific few would be declared so as to be exported.<br>
</div></div></blockquote><div>Thank you for the information. Maybe you know where to get any preliminary documentation on module system? Or any other information Doug may have used while implementing this?</div></div></blockquote>
<div><br>I do not know if any documentation was published about it (sorry).<br><br>There are tests though: <a href="http://llvm.org/svn/llvm-project/cfe/trunk/test/Modules/">http://llvm.org/svn/llvm-project/cfe/trunk/test/Modules/</a> which is always a good starting point.<br>
<br>-- Matthieu<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div><br></div>
<div>Can anyone explain me the PCH part? Doug? Richard?</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div>-- Matthieu<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>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.</div>
<div> </div><div>Thanks in advance!</div><span class="HOEnZb"><font color="#888888"><span><font color="#888888"><div>
<br></div>--
<div>Regards,</div><div>Alex</div>
</font></span><br></font></span></div><span class="HOEnZb"><font color="#888888">_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br>-- <br>
<div>Regards,</div><div>Alex</div>
</font></span></blockquote></div><br>