- if (!Compilations)
- llvm::report_fatal_error(ErrorMessage);
+ if (!Compilations) {
+ errs() << "Compilation database not found - using default options\n";
+ int argc = 1;
+ const char *argv[] = {"--"};
+ Compilations.reset(
+ FixedCompilationDatabase::loadFromCommandLine(argc, argv));
Just Compilations.reset(new FixedCompilationDatabase(".",
std::vector<std::string>()))?
On Thu, Dec 3, 2015 at 8:51 AM Russell Wallace via cfe-commits <
[email protected]> wrote:
> Per discussion at
> http://lists.llvm.org/pipermail/cfe-dev/2015-December/046321.html allow
> tools to work in the absence of a compilation database, but warn the user
> about the absence.
> _______________________________________________
> cfe-commits mailing list
> [email protected]
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits