[all-commits] [llvm/llvm-project] 87cb73: [Clang] Add VerboseOutputStream to CompilerInstance

Scott Linder via All-commits all-commits at lists.llvm.org
Mon Oct 21 12:03:35 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 87cb734c04beab4731b51ff6763f5e63a9e604d6
      https://github.com/llvm/llvm-project/commit/87cb734c04beab4731b51ff6763f5e63a9e604d6
  Author: Scott Linder <scott at scottlinder.com>
  Date:   2019-10-21 (Mon, 21 Oct 2019)

  Changed paths:
    M clang/include/clang/Frontend/CompilerInstance.h
    M clang/lib/Frontend/CompilerInstance.cpp
    M clang/unittests/Frontend/OutputStreamTest.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list