[clang-tools-extra] [clang-doc] Refactor error handling to use ExitOnError (PR #141699)
Samarth Narang via cfe-commits
cfe-commits at lists.llvm.org
Thu May 29 09:51:34 PDT 2025
================
@@ -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";
----------------
snarang181 wrote:
Sounds like a good refactoring practice, but do we have enough usecases? I suppose if it's just two calls, I doubt if the code size increase + extra function call is worth it?
https://github.com/llvm/llvm-project/pull/141699
More information about the cfe-commits
mailing list