================ @@ -300,7 +297,7 @@ Example usage for a project using a compile commands database: "these files and continue:\n" << toString(std::move(Err)) << "\n"; else { - llvm::errs() << toString(std::move(Err)) << "\n"; ---------------- ilovepi wrote:
I wonder if we should use a lambda or helper function to let us just have a call to `ExitOnErr`. Internally, the helper could call execute and only return an error if `IgnoreMappingFailures == false`. It can still log things, but the usage here would just be `ExitOnErr(helper(Executor->get->execute(...)))`. WDYT? https://github.com/llvm/llvm-project/pull/141699 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits