[cfe-commits] [PATCH] pretty display of unprintable source and correct caret/range/fixup alignment

Seth Cantrell seth.cantrell at gmail.com
Sat Mar 31 21:08:47 PDT 2012


The first patch is to add support for reversed colors to llvm raw_ostreams.

The second patch uses the reversed colors to improve display of unprintable source, such as source code that includes invalid encodings, control characters, or unknown characters. Unprintable characters are displayed as <U+NNNN> and bytes that aren't valid encodings are displayed as <XX>, both using reversed colors. In addition diagnostic carets, highlighted ranges, and fixups are displayed with the appropriate adjustments. Adjustments are also made for characters that are printable but not ascii.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-reverseColor-to-raw_ostream.patch
Type: application/octet-stream
Size: 5049 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120401/2774e4af/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Nicer-display-of-unprintable-source-and-fix-caret-di.patch
Type: application/octet-stream
Size: 37344 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120401/2774e4af/attachment-0001.obj>


More information about the cfe-commits mailing list