[Clang] Add VerboseOutputStream to CompilerInstance
authorScott Linder <scott@scottlinder.com>
Mon, 21 Oct 2019 19:04:56 +0000 (19:04 +0000)
committerScott Linder <scott@scottlinder.com>
Mon, 21 Oct 2019 19:04:56 +0000 (19:04 +0000)
commit87cb734c04beab4731b51ff6763f5e63a9e604d6
treeb0fc6b2d93a59bf44e0582ee19207421e02effd3
parentca7f4d8b85b0e1f2f7ab4afab8a31b6aee5964cb
[Clang] Add VerboseOutputStream to CompilerInstance

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.

Differential Revision: https://reviews.llvm.org/D53768

llvm-svn: 375442
clang/include/clang/Frontend/CompilerInstance.h
clang/lib/Frontend/CompilerInstance.cpp
clang/unittests/Frontend/OutputStreamTest.cpp