This is an archive of the discontinued LLVM Phabricator instance.

Fix colored diagnostics from tools
ClosedPublic

Authored by ogoffart on Aug 24 2016, 7:13 AM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

ogoffart updated this revision to Diff 69115.Aug 24 2016, 7:13 AM
ogoffart retitled this revision from to Fix colored diagnostics from tools .
ogoffart updated this object.
ogoffart added reviewers: bruno, dexonsmith, cfe-commits.
bruno edited edge metadata.Aug 24 2016, 12:57 PM

Hi Olivier,

Can you add a test? Can you also include some context to the patch?

Thanks,

ogoffart updated this revision to Diff 69221.Aug 25 2016, 4:14 AM
ogoffart edited edge metadata.

Added a test.

ogoffart updated this revision to Diff 69225.Aug 25 2016, 5:07 AM

This new patch make sure the test run fine as part of the testsuite, where the output is not a terminal and the color are disabled by default

bruno accepted this revision.Aug 30 2016, 10:09 AM
bruno edited edge metadata.

Thanks, LGTM

This revision is now accepted and ready to land.Aug 30 2016, 10:09 AM
This revision was automatically updated to reflect the committed changes.