Kal Conley
2012-Jan-20 20:48 UTC
[LLVMdev] CommandLine Manual: Writing a custom parser example broke
Hi,
It looks like the "Writing a custom parser" example from the
CommandLine
2.0 Library Manual is broke for 3.0+. This used to work with llvm-2.9.
When I try to compile it I get:
../include/llvm/Support/CommandLine.h:964:20: error: no viable
conversion from 'const FileSizeParser' to
'parser<unsigned>'
I fixed it by changing
struct FileSizeParser : public cl::basic_parser<unsigned> {
to
struct FileSizeParser : public cl::parser<unsigned> {
on 3.0
Maybe Matching Threads
- [CommandLine] Unable to implement a custom parser -- all marked final
- [CommandLine] Unable to implement a custom parser -- all marked final
- [LLVMdev] anchoring explicit template instantiations
- [LLVMdev] anchoring explicit template instantiations
- [LLVMdev] Infinite recursion in sys::fs::create_directories()
