[PATCH] D33899: Allow VersionPrinter to print to arbitrary raw_ostreams

Mehdi AMINI via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 5 11:38:59 PDT 2017


mehdi_amini added inline comments.


================
Comment at: include/llvm/Support/CommandLine.h:69
+typedef void (*VersionPrinterTy)(raw_ostream &);
+
 ///===---------------------------------------------------------------------===//
----------------
Using a `std::function` (or maybe `llvm::function_ref`) would be allowing for more rich object to be passed in (i.e. a client that may want state to be passed around).


https://reviews.llvm.org/D33899





More information about the llvm-commits mailing list