sammccall accepted this revision.
sammccall added a comment.
This revision is now accepted and ready to land.

I do half wonder whether we're going to get 3 steps further and then crash 
again when we call `Command.front()` :-)

This change looks good.

It also seems tempting to inject an empty check in GlobalCompilationDatabase 
(where we convert `vector<CompileCommand>` -> `optional`.
But I can see a perverse situation where e.g. background indexing would "just 
fail" at the driver level today, but the change would lead to using a fallback 
command and attempting to parse some binary file. (Ugh, garbage in 
compile_commands...)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109894/new/

https://reviews.llvm.org/D109894

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to