Lines Matching defs:ArgName
233 StringRef ArgName,
244 if (Handler->addOccurrence(pos, ArgName, Val.substr(0, Pos), MultiArg))
256 if (Handler->addOccurrence(pos, ArgName, Value, MultiArg))
265 static inline bool ProvideOption(Option *Handler, StringRef ArgName,
302 return CommaSeparateAndAddOccurence(Handler, i, ArgName, Value);
308 if (CommaSeparateAndAddOccurence(Handler, i, ArgName, Value, MultiArg))
319 if (CommaSeparateAndAddOccurence(Handler, i, ArgName, Value, MultiArg))
624 StringRef ArgName = "";
673 ArgName = argv[i]+1;
675 while (!ArgName.empty() && ArgName[0] == '-')
676 ArgName = ArgName.substr(1);
678 Handler = LookupOption(ArgName, Value, Opts);
685 ArgName = argv[i]+1;
687 while (!ArgName.empty() && ArgName[0] == '-')
688 ArgName = ArgName.substr(1);
690 Handler = LookupOption(ArgName, Value, Opts);
694 Handler = HandlePrefixedOrGroupedOption(ArgName, Value,
700 NearestHandler = LookupNearestOption(ArgName, Opts,
729 ErrorParsing |= ProvideOption(Handler, ArgName, Value, argc, argv, i);
860 bool Option::error(const Twine &Message, StringRef ArgName) {
861 if (ArgName.data() == 0) ArgName = ArgStr;
862 if (ArgName.empty())
865 errs() << ProgramName << ": for the -" << ArgName;
871 bool Option::addOccurrence(unsigned pos, StringRef ArgName,
879 return error("may only occur zero or one times!", ArgName);
883 return error("must occur exactly one time!", ArgName);
891 return handleOccurrence(pos, ArgName, Value);
957 bool parser<bool>::parse(Option &O, StringRef ArgName,
975 bool parser<boolOrDefault>::parse(Option &O, StringRef ArgName,
993 bool parser<int>::parse(Option &O, StringRef ArgName,
1002 bool parser<unsigned>::parse(Option &O, StringRef ArgName,
1012 bool parser<unsigned long long>::parse(Option &O, StringRef ArgName,
1032 bool parser<double>::parse(Option &O, StringRef ArgName,
1037 bool parser<float>::parse(Option &O, StringRef ArgName,