Fix colored diagnostics from tools
authorOlivier Goffart <ogoffart@woboq.com>
Tue, 30 Aug 2016 17:42:29 +0000 (17:42 +0000)
committerOlivier Goffart <ogoffart@woboq.com>
Tue, 30 Aug 2016 17:42:29 +0000 (17:42 +0000)
commitb37a5e3a71a6f20f9cae60538f6a25942c5256cc
treec80014f206d758929347835c95d02074deff9be3
parent624cdc38034bfea022c8a85cd1c70d8c63589c0b
Fix colored diagnostics from tools

r271042 changed the way the diagnostic arguments are parsed. It assumes that
the diagnostics options were already parsed by the "Driver".
For tools using clang::Tooling, the diagnostics argument were not parsed.

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

llvm-svn: 280118
clang/lib/Tooling/Tooling.cpp
clang/unittests/Tooling/ToolingTest.cpp