<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Nov 5, 2012, at 12:05 PM, Kim Gräsman <<a href="mailto:kim.grasman@gmail.com">kim.grasman@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">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: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; ">
<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></blockquote><div><br></div><div>How about if you don't pass an implementation of ModuleLoader, the preprocessor creates internally the "VoidModuleLoader".</div><br><blockquote type="cite"><div class="gmail_quote">
<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>
</blockquote></div><br></body></html>