Hi Argyrios, Doug,<br><br><div class="gmail_quote">On Mon, Nov 5, 2012 at 8:50 PM, Douglas Gregor <span dir="ltr"><<a href="mailto:dgregor@apple.com" target="_blank">dgregor@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On Nov 5, 2012, at 11:44 AM, Argyrios Kyrtzidis <<a href="mailto:kyrtzidis@apple.com">kyrtzidis@apple.com</a>> wrote:<br>
<br>
> Could we change the Preprocessor to accept an optional pointer to a ModuleLoader ?<br></div></blockquote><div><br></div><div>Since Preprocessor has a getModuleLoader() method, that would force null-checks on all callers. Currently only 2 of them, so no big deal, but I tend to shy away from exposing NULLs.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
> This will eliminate the whole "VoidModuleLoader" business and the hack of having the ASTUnit "implement" a ModuleLoader just so we have something to pass to the Preprocessor when loading an AST file.<br>
</div></blockquote><div><br></div><div>I didn't know about that hack. If there was a VoidModuleLoader next to ModuleLoader, you could use that ;-)</div><div><br></div><div>- Kim </div><div><br></div></div>