<div style="font-family: arial, helvetica, sans-serif"><font size="2"><div class="gmail_quote">On Thu, Jun 14, 2012 at 12:19 PM, David Röthlisberger <span dir="ltr"><<a href="mailto:david@rothlis.net" target="_blank">david@rothlis.net</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">On 12 Jun 2012, at 10:44, Arnaud de Grandmaison wrote:<br>
> On 06/12/2012 10:13 AM, David Röthlisberger wrote:<br>
</div><div class="im">>> what is the meaning of having multiple compilation commands for a single file?<br>
><br>
</div><div class="im">> Multiple compilation commands can happen in some cases : for example<br>
> varying some defines to enable different part of the file (think<br>
> tablegen'erated files),<br>
<br>
</div>Do you have any insights as to what user-level tools (such as<br>
clang_complete) can do in the presence of multiple such commands?<br>
Perhaps process (gather completions from) *all* of the file's different<br>
compilation commands?<br></blockquote><div><br></div><div>For example, yep. I think for code_complete that's probably not what you want, but for other tools (rename) that's a completely different story.</div><div>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
> or different other compile options in case<br>
> multiple builds are done at the same time (debug, release, ...).<br>
<br>
<br>
</div>I don't think the tools need to worry about this, as different builds<br>
will be done in different build directories, each with its own<br>
compilation database.<br></blockquote><div><br></div><div>This is a use case we have, so I'll just go ahead and respectfully disagree...</div><div><br></div><div>Cheers,</div><div>/Manuel</div><div><br></div></div></font></div>