You're right, we're going to find a better solution for our issue. I've removed this hook in r160432.<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 18, 2012 at 12:28 AM, 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 Jul 17, 2012, at 9:11 AM, Alexander Kornienko <<a href="mailto:alexfh@google.com">alexfh@google.com</a>> wrote:<br>
<br>
> Author: alexfh<br>
> Date: Tue Jul 17 11:11:17 2012<br>
> New Revision: 160369<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=160369&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=160369&view=rev</a><br>
> Log:<br>
> Add a custom initialize hook for clang tools + minor fixes in CustomCompilationDatabase.h<br>
<br>
</div>This kind of #define-based hack doesn't have a lot of precedent in Clang or LLVM. What is the point of this custom initialization hook? Why does it have to be a #define hacked into the build of Clang itself (which is supposed to be a reusable *library*) rather than being introduced via a plugin or by setting some function pointer/callback somewhere?<br>

<br>
This feels very much like the wrong solution for the problem you're trying to solve, but it's not at all clear what problem you're solving.<br>
<br>
        - Doug</blockquote></div><div><br></div>-- <br>
</div><div class="gmail_extra">Best regards,</div><div class="gmail_extra">Alexander Kornienko</div>