[PATCH] Pretty print template arg enum constants (if possible)

Will Wilson will at indefiant.com
Thu Dec 11 20:28:12 PST 2014


Hi Richard,

Here's a simple patch that improves pretty printing for templates args
specialized to enum constants. If an enum constant isn't available to
represent the value it falls back on printing the integer value.

Tested against latest trunk and includes a new test case and a updated
existing test case.

Let me know if it looks good to go...

Cheers,
Will.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141212/d41b77f1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: temp_arg_enum_printing.patch
Type: application/octet-stream
Size: 2690 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141212/d41b77f1/attachment.obj>


More information about the cfe-commits mailing list