[PATCH] Update YamlIO documentation for ScalarTraits

Alex Lorenz arphaman at gmail.com
Tue Apr 21 14:02:30 PDT 2015


Hi kledzik,

This patch updates the documentation for ScalarTraits by adding the missing context parameter
to the output and input method.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D9173

Files:
  docs/YamlIO.rst

Index: docs/YamlIO.rst
===================================================================
--- docs/YamlIO.rst
+++ docs/YamlIO.rst
@@ -456,10 +456,10 @@
 
     template <>
     struct ScalarTraits<MyCustomType> {
-      static void output(const T &value, llvm::raw_ostream &out) {
+      static void output(const T &value, void*, llvm::raw_ostream &out) {
         out << value;  // do custom formatting here
       }
-      static StringRef input(StringRef scalar, T &value) {
+      static StringRef input(StringRef scalar, void*, T &value) {
         // do custom parsing here.  Return the empty string on success,
         // or an error message on failure.
         return StringRef();

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9173.24170.patch
Type: text/x-patch
Size: 691 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150421/ddd91199/attachment.bin>


More information about the llvm-commits mailing list