<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>