<p>OK, thanks for the detailed info, I'll look into the linking process.</p>
<div class="gmail_quote">On Apr 5, 2012 10:39 PM, "Douglas Gregor" <<a href="mailto:dgregor@apple.com">dgregor@apple.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On Apr 5, 2012, at 12:15 PM, Yaakov Davis <<a href="mailto:yaakov.davis@gmail.com">yaakov.davis@gmail.com</a>> wrote:<br>
<br>
> Can the different compilers use the same ASTContext?<br>
<br>
No, they must have different ASTContexts.<br>
<br>
> E.g. say a.cpp contains Foo::bar() and b.cpp contains Foo::bar2(); will the Foo type in the semantic DeclContext contain both foo and foo2 after parsing both files?<br>
<br>
No, it won't. Separate translation units are separate until something comes in to link them together.<br>
<br>
> Could you please provide an example how to setup the parsers?<br>
<br>
Sorry, I don't have time to write up a complete example now, but this kind of thing will get a lot easier soon with the current work on Tooling infrastructure.<br>
<br>
        - Doug<br>
<br>
</blockquote></div>