[PATCH] D14348: Add Printable class to simplify the construction of Print helpers.

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 3 10:12:21 PST 2015


dblaikie added a comment.

Perhaps we could skip the Printable type and make this more like IO manipulators in the standard streams ( http://www.cplusplus.com/reference/ostream/ostream/operator%3C%3C/ )

Which is to say, add a "operator<<(std::function<void(raw_ostream&)>)" to raw_ostream, and it just calls it on itself.

Seem reasonable?


Repository:
  rL LLVM

http://reviews.llvm.org/D14348





More information about the llvm-commits mailing list