]> granicus.if.org Git - clang/commit
[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)
commitfd456e42ad4108bc4feb14ba37a5c0cb267744a2
tree98dfe40ac39ac0dc07232f13dcc57a7be605fe4b
parent03d35ab3ae600b0659dcb47c006d9d51925e427f
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@375442 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/CompilerInstance.h
lib/Frontend/CompilerInstance.cpp
unittests/Frontend/OutputStreamTest.cpp