<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, Dec 2, 2015 at 10:35 AM Russell Wallace via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Tools built with LibTooling default to using a compilation database if one is available, which is good.<br><br>In the case where a compilation database is not available, there is a problem: the default behavior is to exit with an error message, whereas in some cases the tool would be required to do the best it can anyway. This can be achieved by adding -- to the end of the command line, but this wouldn't be obvious to someone unfamiliar with Clang tools.<br><br>One solution would be for the program to append -- to argv if it's not already present, but would this disable the default useful behavior of reading the compilation database if it is available?<br><br>If so, is there a way for the program to say 'okay, check for a compilation database as normal, but if it's not present, let me know and I'll fill in some best-guess default options'?<br></div></blockquote><div><br></div><div>The problem is that for C++ there really are no best guess default options. If you have ideas for what they should be, please make a proposal.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"></div>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div></div>