reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Derived Classes

tools/clang/tools/clang-refactor/ClangRefactor.cpp
  253 class RefactoringActionSubcommand : public cl::SubCommand {
unittests/Support/CommandLineTest.cpp
   69 class StackSubCommand : public cl::SubCommand {

References

include/llvm/Support/CommandLine.h
  243 extern ManagedStatic<SubCommand> TopLevelSubCommand;
  246 extern ManagedStatic<SubCommand> AllSubCommands;
  288   SmallPtrSet<SubCommand *, 1> Subs; // The subcommands this option belongs to.
  339   void addSubCommand(SubCommand &S) { Subs.insert(&S); }
  464   SubCommand &Sub;
  466   sub(SubCommand &S) : Sub(S) {}
 1860 StringMap<Option *> &getRegisteredOptions(SubCommand &Sub = *TopLevelSubCommand);
 1881 iterator_range<typename SmallPtrSet<SubCommand *, 4>::iterator>
 1980                           SubCommand &Sub = *TopLevelSubCommand);
 1990                           SubCommand &Sub = *TopLevelSubCommand);
include/llvm/Support/ManagedStatic.h
   23   static void *call() { return new C(); }
   86   C &operator*() {
   94   C *operator->() { return &**this; }
   96   const C &operator*() const {
  104   const C *operator->() const { return &**this; }
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/Support/CommandLine.cpp
  151   SmallPtrSet<SubCommand *, 4> RegisteredSubCommands;
  164   void addLiteralOption(Option &Opt, SubCommand *SC, StringRef Name) {
  193   void addOption(Option *O, SubCommand *SC) {
  254   void removeOption(Option *O, SubCommand *SC) {
  260     SubCommand &Sub = *SC;
  301   bool hasOptions(const SubCommand &Sub) const {
  314   SubCommand *getActiveSubCommand() { return ActiveSubCommand; }
  316   void updateArgStr(Option *O, StringRef NewName, SubCommand *SC) {
  317     SubCommand &Sub = *SC;
  352   void registerSubCommand(SubCommand *sub) {
  375   void unregisterSubCommand(SubCommand *sub) {
  379   iterator_range<typename SmallPtrSet<SubCommand *, 4>::iterator>
  405   SubCommand *ActiveSubCommand;
  407   Option *LookupOption(SubCommand &Sub, StringRef &Arg, StringRef &Value);
  408   Option *LookupLongOption(SubCommand &Sub, StringRef &Arg, StringRef &Value,
  415   SubCommand *LookupSubCommand(StringRef Name);
  476 ManagedStatic<SubCommand> llvm::cl::TopLevelSubCommand;
  479 ManagedStatic<SubCommand> llvm::cl::AllSubCommands;
  508 Option *CommandLineParser::LookupOption(SubCommand &Sub, StringRef &Arg,
  543 SubCommand *CommandLineParser::LookupSubCommand(StringRef Name) {
 1289   SubCommand *ChosenSubCommand = &*TopLevelSubCommand;
 2006 static int SubNameCompare(const std::pair<const char *, SubCommand *> *LHS,
 2007                           const std::pair<const char *, SubCommand *> *RHS) {
 2040 sortSubCommands(const SmallPtrSetImpl<SubCommand *> &SubMap,
 2041                 SmallVectorImpl<std::pair<const char *, SubCommand *>> &Subs) {
 2057   typedef SmallVector<std::pair<const char *, SubCommand *>, 128>
 2091     SubCommand *Sub = GlobalParser->getActiveSubCommand();
 2454 StringMap<Option *> &cl::getRegisteredOptions(SubCommand &Sub) {
 2461 iterator_range<typename SmallPtrSet<SubCommand *, 4>::iterator>
 2466 void cl::HideUnrelatedOptions(cl::OptionCategory &Category, SubCommand &Sub) {
 2477                               SubCommand &Sub) {
tools/clang/tools/clang-refactor/ClangRefactor.cpp
  223       cl::OptionCategory &Category, cl::SubCommand &Subcommand,
  248   cl::SubCommand &Subcommand;
  253 class RefactoringActionSubcommand : public cl::SubCommand {
tools/lldb/tools/lldb-test/lldb-test.cpp
   54 static cl::SubCommand BreakpointSubcommand("breakpoints",
   56 cl::SubCommand ObjectFileSubcommand("object-file",
   58 cl::SubCommand SymbolsSubcommand("symbols", "Dump symbols for an object file");
   59 cl::SubCommand IRMemoryMapSubcommand("ir-memory-map", "Test IRMemoryMap");
tools/llvm-pdbutil/llvm-pdbutil.cpp
  101 cl::SubCommand DumpSubcommand("dump", "Dump MSF and CodeView debug info");
  102 cl::SubCommand BytesSubcommand("bytes", "Dump raw bytes from the PDB file");
  104 cl::SubCommand DiaDumpSubcommand("diadump",
  107 cl::SubCommand
  111 cl::SubCommand
  114 cl::SubCommand
  118 cl::SubCommand MergeSubcommand("merge",
  121 cl::SubCommand ExplainSubcommand("explain",
  124 cl::SubCommand ExportSubcommand("export",
tools/llvm-xray/llvm-xray.cpp
   30   for (auto *SC : cl::getRegisteredSubcommands()) {
tools/llvm-xray/xray-account.cpp
   29 static cl::SubCommand Account("account", "Function call accounting");
tools/llvm-xray/xray-converter.cpp
   32 static cl::SubCommand Convert("convert", "Trace Format Conversion");
tools/llvm-xray/xray-extract.cpp
   32 static cl::SubCommand Extract("extract", "Extract instrumentation maps");
tools/llvm-xray/xray-fdr-dump.cpp
   28 static cl::SubCommand Dump("fdr-dump", "FDR Trace Dump");
tools/llvm-xray/xray-graph-diff.cpp
   30 static cl::SubCommand GraphDiff("graph-diff",
tools/llvm-xray/xray-graph.cpp
   24 static cl::SubCommand GraphC("graph", "Generate function-call graph");
tools/llvm-xray/xray-registry.cpp
   22 ManagedStatic<std::unordered_map<cl::SubCommand *, HandlerType>> Commands;
   24 CommandRegistration::CommandRegistration(cl::SubCommand *SC,
   32 HandlerType dispatch(cl::SubCommand *SC) {
tools/llvm-xray/xray-registry.h
   31   CommandRegistration(cl::SubCommand *SC, std::function<Error()> Command);
   35 std::function<Error()> dispatch(cl::SubCommand *SC);
tools/llvm-xray/xray-stacks.cpp
   36 static cl::SubCommand Stack("stack", "Call stack accounting");
unittests/Support/CommandLineTest.cpp
   69 class StackSubCommand : public cl::SubCommand {
  661   for (auto *S : cl::getRegisteredSubcommands()) {
  672   for (auto *S : cl::getRegisteredSubcommands()) {
  717   for (auto *S : cl::getRegisteredSubcommands()) {
  733   for (auto *S : cl::getRegisteredSubcommands()) {
usr/include/c++/7.4.0/bits/functional_hash.h
  106     struct hash<_Tp*> : public __hash_base<size_t, _Tp*>
  109       operator()(_Tp* __p) const noexcept
usr/include/c++/7.4.0/type_traits
 1983     { typedef _Up     type; };