|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Derived Classes
include/llvm/Support/CommandLine.h 1331 class opt : public Option,
1413 extern template class opt<unsigned>;
1414 extern template class opt<int>;
1415 extern template class opt<std::string>;
1416 extern template class opt<char>;
1417 extern template class opt<bool>;
1529 class list : public Option, public list_storage<DataType, StorageClass> {
1743 class alias : public Option {
Declarations
include/llvm/Support/CommandLine.h 105 class Option;
References
include/llvm/CodeGen/MachinePassRegistry.h 140 RegisterPassParser(cl::Option &O)
include/llvm/IR/LegacyPassNameParser.h 44 PassNameParser(cl::Option &O);
81 void printOptionInfo(const cl::Option &O, size_t GlobalWidth) const override {
include/llvm/Support/CommandLine.h 114 void AddLiteralOption(Option &O, StringRef Name);
235 SmallVector<Option *, 4> PositionalOpts;
236 SmallVector<Option *, 4> SinkOpts;
237 StringMap<Option *> OptionsMap;
239 Option *ConsumeAfterOpt = nullptr; // The ConsumeAfter option if it exists.
408 void apply(Option &O) const { O.setDescription(Desc); }
418 void apply(Option &O) const { O.setValueStr(Desc); }
679 generic_parser_base(Option &O) : Owner(O) {}
696 virtual size_t getOptionWidth(const Option &O) const;
703 virtual void printOptionInfo(const Option &O, size_t GlobalWidth) const;
705 void printGenericOptionDiff(const Option &O, const GenericOptionValue &V,
714 void printOptionDiff(const Option &O, const AnyOptionValue &V,
755 Option &Owner;
776 parser(Option &O) : generic_parser_base(O) {}
793 bool parse(Option &O, StringRef ArgName, StringRef Arg, DataType &V) {
833 basic_parser_impl(Option &) {}
846 size_t getOptionWidth(const Option &O) const;
851 void printOptionInfo(const Option &O, size_t GlobalWidth) const;
855 void printOptionNoValue(const Option &O, size_t GlobalWidth) const;
865 void printOptionName(const Option &O, size_t GlobalWidth) const;
876 basic_parser(Option &O) : basic_parser_impl(O) {}
884 parser(Option &O) : basic_parser(O) {}
887 bool parse(Option &O, StringRef ArgName, StringRef Arg, bool &Val);
898 void printOptionDiff(const Option &O, bool V, OptVal Default,
911 parser(Option &O) : basic_parser(O) {}
914 bool parse(Option &O, StringRef ArgName, StringRef Arg, boolOrDefault &Val);
923 void printOptionDiff(const Option &O, boolOrDefault V, OptVal Default,
937 parser(Option &O) : basic_parser(O) {}
940 bool parse(Option &O, StringRef ArgName, StringRef Arg, int &Val);
945 void printOptionDiff(const Option &O, int V, OptVal Default,
959 parser(Option &O) : basic_parser(O) {}
962 bool parse(Option &O, StringRef ArgName, StringRef Arg, unsigned &Val);
967 void printOptionDiff(const Option &O, unsigned V, OptVal Default,
982 parser(Option &O) : basic_parser(O) {}
985 bool parse(Option &O, StringRef ArgName, StringRef Arg, unsigned long &Val);
990 void printOptionDiff(const Option &O, unsigned long V, OptVal Default,
1005 parser(Option &O) : basic_parser(O) {}
1008 bool parse(Option &O, StringRef ArgName, StringRef Arg,
1014 void printOptionDiff(const Option &O, unsigned long long V, OptVal Default,
1028 parser(Option &O) : basic_parser(O) {}
1031 bool parse(Option &O, StringRef ArgName, StringRef Arg, double &Val);
1036 void printOptionDiff(const Option &O, double V, OptVal Default,
1050 parser(Option &O) : basic_parser(O) {}
1053 bool parse(Option &O, StringRef ArgName, StringRef Arg, float &Val);
1058 void printOptionDiff(const Option &O, float V, OptVal Default,
1072 parser(Option &O) : basic_parser(O) {}
1075 bool parse(Option &, StringRef, StringRef Arg, std::string &Value) {
1083 void printOptionDiff(const Option &O, StringRef V, const OptVal &Default,
1097 parser(Option &O) : basic_parser(O) {}
1100 bool parse(Option &, StringRef, StringRef Arg, char &Value) {
1108 void printOptionDiff(const Option &O, char V, OptVal Default,
1125 void printOptionDiff(const Option &O, const generic_parser_base &P, const DT &V,
1134 void print(const Option &O, const parser<ParserDT> &P, const ValDT & /*V*/,
1143 void print(const Option &O, const parser<DT> &P, const DT &V,
1153 const Option &O,
1190 static void opt(NumOccurrencesFlag N, Option &O) {
1196 static void opt(ValueExpected VE, Option &O) { O.setValueExpectedFlag(VE); }
1200 static void opt(OptionHidden OH, Option &O) { O.setHiddenFlag(OH); }
1204 static void opt(FormattingFlags FF, Option &O) { O.setFormattingFlag(FF); }
1208 static void opt(MiscFlags MF, Option &O) {
1217 void apply(Opt *O, const Mod &M, const Mods &... Ms) {
1222 template <class Opt, class Mod> void apply(Opt *O, const Mod &M) {
1247 bool setLocation(Option &O, DataType &L) {
1331 class opt : public Option,
1434 bool setLocation(Option &O, StorageClass &L) {
1529 class list : public Option, public list_storage<DataType, StorageClass> {
1629 bool setLocation(Option &O, unsigned &L) {
1675 class bits : public Option, public bits_storage<DataType, Storage> {
1743 class alias : public Option {
1744 Option *AliasFor;
1787 void setAliasFor(Option &O) {
1803 Option &Opt;
1805 explicit aliasopt(Option &O) : Opt(O) {}
1860 StringMap<Option *> &getRegisteredOptions(SubCommand &Sub = *TopLevelSubCommand);
2004 bool ProvidePositionalOption(Option *Handler, StringRef Arg, int i);
include/llvm/Support/Options.h 66 DenseMap<void *, cl::Option *> Options;
75 void addOption(void *Key, cl::Option *O);
include/llvm/Support/PointerLikeTypeTraits.h 56 static inline void *getAsVoidPointer(T *P) { return P; }
57 static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
59 enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
lib/IR/Pass.cpp 262 PassNameParser::PassNameParser(cl::Option &O)
lib/Support/CommandLine.cpp 109 static inline bool isGrouping(const Option *O) {
112 static inline bool isPrefixedOrGrouping(const Option *O) {
145 SmallVector<Option*, 4> DefaultOptions;
164 void addLiteralOption(Option &Opt, SubCommand *SC, StringRef Name) {
184 void addLiteralOption(Option &Opt, StringRef Name) {
193 void addOption(Option *O, SubCommand *SC) {
240 void addOption(Option *O, bool ProcessDefaultOption = false) {
254 void removeOption(Option *O, SubCommand *SC) {
287 void removeOption(Option *O) {
316 void updateArgStr(Option *O, StringRef NewName, SubCommand *SC) {
326 void updateArgStr(Option *O, StringRef NewName) {
365 Option *O = E.second;
407 Option *LookupOption(SubCommand &Sub, StringRef &Arg, StringRef &Value);
408 Option *LookupLongOption(SubCommand &Sub, StringRef &Arg, StringRef &Value,
410 Option *Opt = LookupOption(Sub, Arg, Value);
422 void cl::AddLiteralOption(Option &O, StringRef Name) {
508 Option *CommandLineParser::LookupOption(SubCommand &Sub, StringRef &Arg,
562 static Option *LookupNearestOption(StringRef Arg,
563 const StringMap<Option *> &OptionsMap,
575 Option *Best = nullptr;
577 for (StringMap<Option *>::const_iterator it = OptionsMap.begin(),
580 Option *O = it->second;
607 static bool CommaSeparateAndAddOccurrence(Option *Handler, unsigned pos,
635 static inline bool ProvideOption(Option *Handler, StringRef ArgName,
695 bool llvm::cl::ProvidePositionalOption(Option *Handler, StringRef Arg, int i) {
706 static Option *getOptionPred(StringRef Name, size_t &Length,
707 bool (*Pred)(const Option *),
708 const StringMap<Option *> &OptionsMap) {
709 StringMap<Option *>::const_iterator OMI = OptionsMap.find(Name);
734 static Option *
737 const StringMap<Option *> &OptionsMap) {
743 Option *PGOpt = getOptionPred(Arg, Length, isPrefixedOrGrouping, OptionsMap);
789 static bool RequiresValue(const Option *O) {
794 static bool EatsUnboundedNumberOfValues(const Option *O) {
1318 Option *Opt = PositionalOpts[i];
1359 Option *ActivePositionalArg = nullptr;
1364 Option *Handler = nullptr;
1365 Option *NearestHandler = nullptr;
1455 for (SmallVectorImpl<Option *>::iterator I = SinkOpts.begin(),
1636 static StringRef getValueStr(const Option &O, StringRef DefaultMsg) {
1677 size_t basic_parser_impl::getOptionWidth(const Option &O) const {
1693 void basic_parser_impl::printOptionInfo(const Option &O,
1706 Option::printHelpStr(O.HelpStr, GlobalWidth, getOptionWidth(O));
1709 void basic_parser_impl::printOptionName(const Option &O,
1717 bool parser<bool>::parse(Option &O, StringRef ArgName, StringRef Arg,
1735 bool parser<boolOrDefault>::parse(Option &O, StringRef ArgName, StringRef Arg,
1753 bool parser<int>::parse(Option &O, StringRef ArgName, StringRef Arg,
1762 bool parser<unsigned>::parse(Option &O, StringRef ArgName, StringRef Arg,
1772 bool parser<unsigned long>::parse(Option &O, StringRef ArgName, StringRef Arg,
1782 bool parser<unsigned long long>::parse(Option &O, StringRef ArgName,
1793 static bool parseDouble(Option &O, StringRef Arg, double &Value) {
1799 bool parser<double>::parse(Option &O, StringRef ArgName, StringRef Arg,
1804 bool parser<float>::parse(Option &O, StringRef ArgName, StringRef Arg,
1835 const Option &O) {
1841 size_t generic_parser_base::getOptionWidth(const Option &O) const {
1864 void generic_parser_base::printOptionInfo(const Option &O,
1873 Option::printHelpStr(O.HelpStr, GlobalWidth,
1881 Option::printHelpStr(O.HelpStr, GlobalWidth,
1907 Option::printHelpStr(getDescription(i), GlobalWidth, Option.size() + 8);
1918 const Option &O, const GenericOptionValue &Value,
1976 void parser<std::string>::printOptionDiff(const Option &O, StringRef V,
1991 void basic_parser_impl::printOptionNoValue(const Option &O,
2001 static int OptNameCompare(const std::pair<const char *, Option *> *LHS,
2002 const std::pair<const char *, Option *> *RHS) {
2012 static void sortOpts(StringMap<Option *> &OptMap,
2013 SmallVectorImpl<std::pair<const char *, Option *>> &Opts,
2015 SmallPtrSet<Option *, 32> OptionSet; // Duplicate option detection.
2017 for (StringMap<Option *>::iterator I = OptMap.begin(), E = OptMap.end();
2055 typedef SmallVector<std::pair<const char *, Option *>, 128>
2180 std::map<OptionCategory *, std::vector<Option *>> CategorizedOptions;
2206 Option *Opt = Opts[I].second;
2242 for (const Option *Opt : CategoryOptions)
2350 SmallVector<std::pair<const char *, Option *>, 128> Opts;
2454 StringMap<Option *> &cl::getRegisteredOptions(SubCommand &Sub) {
lib/Support/DebugCounter.cpp 33 Option::printHelpStr(HelpStr, GlobalWidth, ArgStr.size() + 6);
lib/Support/Options.cpp 24 void OptionRegistry::addOption(void *Key, cl::Option *O) {
tools/clang/include/clang/Frontend/CommandLineSourceLoc.h 110 inline bool parse(Option &O, StringRef ArgName, StringRef ArgValue,
116 parse(Option &O, StringRef ArgName, StringRef ArgValue,
tools/llvm-dwarfdump/llvm-dwarfdump.cpp 49 parser(Option &O) : basic_parser(O) {}
52 bool parse(Option &O, StringRef ArgName, StringRef Arg, OffsetOption &Val) {
70 void printOptionInfo(const Option &O, size_t GlobalWidth) const {
72 Option::printHelpStr(O.HelpStr, GlobalWidth, getOptionWidth(O));
75 void printOptionDiff(const Option &O, OffsetOption V, OptVal Default,
tools/llvm-readobj/llvm-readobj.cpp 660 cl::Option *Option = OptEntry.getValue();
tools/llvm-stress/llvm-stress.cpp 73 parser(Option &O) : basic_parser(O) {}
76 bool parse(Option &O, StringRef, StringRef Arg, Type *&Value) {
unittests/Support/CommandLineTest.cpp 89 StringMap<cl::Option *> &Map =
95 cl::Option *Retrieved = Map["test-option"];
392 StringMap<cl::Option *> &Map =
417 StringMap<cl::Option *> &Map =
983 cl::Option *O = OM.second;
1166 void printOptionInfo(const cl::Option &O, size_t Width) {
1250 size_t getOptionWidth(const cl::Option &O) { return O.getOptionWidth(); }
usr/include/c++/7.4.0/type_traits 1983 { typedef _Up type; };
utils/unittest/googletest/include/gtest/gtest-printers.h 407 T* p, ::std::ostream* os) {
416 if (IsTrue(ImplicitlyConvertible<T*, const void*>::value)) {