[cfe-commits] r142121 - /cfe/trunk/lib/Frontend/TextDiagnostic.cpp

Richard Smith richard at metafoo.co.uk
Sun Oct 16 10:01:46 PDT 2011

On Sun, October 16, 2011 08:36, Chandler Carruth wrote:
> Author: chandlerc
> Date: Sun Oct 16 02:36:11 2011
> New Revision: 142121
> URL: http://llvm.org/viewvc/llvm-project?rev=142121&view=rev
> Log:
> Fix the original bug in our diagnostic printing that got me started on
> this long quest: actually use the note printing machinery for each macro
> expansion note rather than a hacky version of it. This will colorize and
> format the notes the same as any other. There is still some stuff to fix here,
> but it's one step closer.
> No test case changes because currently we don't do anything differently
> that I can FileCheck for -- I don't really want to try matching the color
> escape codes... Suggestions for how to test this are welcome. =]

Use -fdiagnostics-format vi or -fdiagnostics-format msvc. I believe the note
should now respect these flags.


More information about the cfe-commits mailing list