[llvm-bugs] [Bug 25104] New: Deriving from cl::parser<unsigned> recommended but impossible

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 8 00:23:43 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=25104

            Bug ID: 25104
           Summary: Deriving from cl::parser<unsigned> recommended but
                    impossible
           Product: Documentation
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: General docs
          Assignee: unassignedbugs at nondot.org
          Reporter: serge.guelton at telecom-bretagne.eu
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

In ``cl`` documentation, section _Writing a custom parser_ (see 
http://llvm.org/docs/CommandLine.html#writing-a-custom-parser)

The following snippet appears:

```

struct FileSizeParser : public cl::parser<unsigned> {
  // parse - Return true on error.
  bool parse(cl::Option &O, StringRef ArgName, const std::string &ArgValue,
             unsigned &Val);
};

```

This is invalid, as ``cl::parser<unsigned>`` is marked as a ``final`` class.

(BTW, it seems to me that removing the final here would be nicer than updating
the doc.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151008/ae9c8825/attachment.html>


More information about the llvm-bugs mailing list