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
- Repository
- rG LLVM Github Monorepo
Event Timeline
include/clang/Frontend/CompilerInstance.h | ||
---|---|---|
362–363 ↗ | (On Diff #220369) | 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?