Remove one instance of a hardcoded output stream in CompilerInstance::ExecuteAction. There are still other cases of output being hard-coded to standard streams in ExecuteCompilerInvocation, but this patch covers the case when no flags like -version or -help are passed, namely the "X warnings and Y errors generated." diagnostic.
Details
Details
Diff Detail
Diff Detail
Event Timeline
include/clang/Frontend/CompilerInstance.h | ||
---|---|---|
362–363 | Do both overloads transfer ownership? Are the "standard" streams like llvm::outs() OK to free? |
Comment Actions
After reading again I think I understand the ask now. Is this closer to what you had in mind?
Rather than a bool, this could be a unique_ptr, perhaps? (null when non-owning)