Home
last modified time | relevance | path

Searched refs:TopLevelSubCommand (Results 1 – 5 of 5) sorted by relevance

/llvm-project-15.0.7/llvm/tools/llvm-xray/
H A Dllvm-xray.cpp34 if (SC == &*cl::TopLevelSubCommand) { in main()
/llvm-project-15.0.7/llvm/unittests/Support/CommandLineInit/
H A DCommandLineInitTest.cpp54 cl::getRegisteredOptions(*cl::TopLevelSubCommand); in TEST()
/llvm-project-15.0.7/llvm/lib/Support/
H A DCommandLine.cpp170 registerSubCommand(&*TopLevelSubCommand); in CommandLineParser()
202 addLiteralOption(Opt, &*TopLevelSubCommand, Name); in addLiteralOption()
263 addOption(O, &*TopLevelSubCommand); in addOption()
305 removeOption(O, &*TopLevelSubCommand); in removeOption()
344 updateArgStr(O, NewName, &*TopLevelSubCommand); in updateArgStr()
412 TopLevelSubCommand->reset(); in reset()
414 registerSubCommand(&*TopLevelSubCommand); in reset()
554 return &*TopLevelSubCommand; in LookupSubCommand()
564 return &*TopLevelSubCommand; in LookupSubCommand()
1460 if (ChosenSubCommand != &*TopLevelSubCommand) in ParseCommandLineOptions()
[all …]
/llvm-project-15.0.7/llvm/unittests/Support/
H A DCommandLineTest.cpp102 cl::getRegisteredOptions(*cl::TopLevelSubCommand); in TEST()
423 cl::getRegisteredOptions(*cl::TopLevelSubCommand); in TEST()
449 cl::getRegisteredOptions(*cl::TopLevelSubCommand); in TEST()
569 StackOption<bool> TopLevelOpt("top-level", cl::sub(*cl::TopLevelSubCommand), in TEST()
618 "top-level-remove", cl::sub(*cl::TopLevelSubCommand), cl::init(false)); in TEST()
620 "top-level-keep", cl::sub(*cl::TopLevelSubCommand), cl::init(false)); in TEST()
1065 for (auto &OM : cl::getRegisteredOptions(*cl::TopLevelSubCommand)) { in TEST()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DCommandLine.h235 extern ManagedStatic<SubCommand> TopLevelSubCommand;
1955 StringMap<Option *> &getRegisteredOptions(SubCommand &Sub = *TopLevelSubCommand);
2126 SubCommand &Sub = *TopLevelSubCommand);
2136 SubCommand &Sub = *TopLevelSubCommand);