Home | History | Annotate | Download | only in Support

Lines Matching refs:parser

542 // parser class - Parameterizable parser for different data types.  By default,
544 // you would expect. The default parser, used for data types that are not
550 // not need replicated for every instance of the generic parser. This also
642 // Default parser implementation - This implementation depends on having a
645 // command line option for -help. Because this is a simple mapping parser, the
648 template <class DataType> class parser : public generic_parser_base {
659 parser(Option &O) : generic_parser_base(O) {}
750 // basic_parser - The real basic parser is just a template wrapper that provides
765 // parser<bool>
767 template <> class parser<bool> final : public basic_parser<bool> {
769 parser(Option &O) : basic_parser(O) {}
793 // parser<boolOrDefault>
795 class parser<boolOrDefault> final : public basic_parser<boolOrDefault> {
797 parser(Option &O) : basic_parser(O) {}
819 // parser<int>
821 template <> class parser<int> final : public basic_parser<int> {
823 parser(Option &O) : basic_parser(O) {}
841 // parser<unsigned>
843 template <> class parser<unsigned> final : public basic_parser<unsigned> {
845 parser(Option &O) : basic_parser(O) {}
863 // parser<unsigned long long>
866 class parser<unsigned long long> final
869 parser(Option &O) : basic_parser(O) {}
888 // parser<double>
890 template <> class parser<double> final : public basic_parser<double> {
892 parser(Option &O) : basic_parser(O) {}
910 // parser<float>
912 template <> class parser<float> final : public basic_parser<float> {
914 parser(Option &O) : basic_parser(O) {}
932 // parser
934 template <> class parser<std::string> final : public basic_parser<std::string> {
936 parser(Option &O) : basic_parser(O) {}
957 // parser<char>
959 template <> class parser<char> final : public basic_parser<char> {
961 parser(Option &O) : basic_parser(O) {}
985 // parser to handle all the template nastiness.
987 // This overloaded function is selected by the generic parser.
998 void print(const Option &O, const parser<ParserDT> &P, const ValDT & /*V*/,
1007 void print(const Option &O, const parser<DT> &P, const DT &V,
1013 // This overloaded function is selected by the basic parser, which may parse a
1186 class ParserClass = parser<DataType>>
1190 ParserClass Parser;
1196 if (Parser.parse(*this, ArgName, Arg, Val))
1204 return Parser.getValueExpectedFlagDefault();
1208 return Parser.getExtraOptionNames(OptionNames);
1211 // Forward printing stuff to the parser...
1213 return Parser.getOptionWidth(*this);
1216 Parser.printOptionInfo(*this, GlobalWidth);
1221 cl::printOptionDiff<ParserClass>(*this, Parser, this->getValue(),
1228 Parser.initialize();
1239 ParserClass &getParser() { return Parser; }
1248 : Option(Optional, NotHidden), Parser(*this) {
1303 class ParserClass = parser<DataType>>
1306 ParserClass Parser;
1309 return Parser.getValueExpectedFlagDefault();
1313 return Parser.getExtraOptionNames(OptionNames);
1320 if (Parser.parse(*this, ArgName, Arg, Val))
1328 // Forward printing stuff to the parser...
1330 return Parser.getOptionWidth(*this);
1333 Parser.printOptionInfo(*this, GlobalWidth);
1342 Parser.initialize();
1350 ParserClass &getParser() { return Parser; }
1361 : Option(ZeroOrMore, NotHidden), Parser(*this) {
1443 class ParserClass = parser<DataType>>
1446 ParserClass Parser;
1449 return Parser.getValueExpectedFlagDefault();
1453 return Parser.getExtraOptionNames(OptionNames);
1460 if (Parser.parse(*this, ArgName, Arg, Val))
1468 // Forward printing stuff to the parser...
1470 return Parser.getOptionWidth(*this);
1473 Parser.printOptionInfo(*this, GlobalWidth);
1482 Parser.initialize();
1490 ParserClass &getParser() { return Parser; }
1499 : Option(ZeroOrMore, NotHidden), Parser(*this) {