Lines Matching refs:CommandInfo
34 const CommandInfo *CommandTraits::getCommandInfoOrNULL(StringRef Name) const {
35 if (const CommandInfo *Info = getBuiltinCommandInfo(Name))
40 const CommandInfo *CommandTraits::getCommandInfo(unsigned CommandID) const {
41 if (const CommandInfo *Info = getBuiltinCommandInfo(CommandID))
46 const CommandInfo *
57 SmallVector<const CommandInfo *, 2> BestCommand;
59 auto ConsiderCorrection = [&](const CommandInfo *Command) {
84 CommandInfo *CommandTraits::createCommandInfoWithName(StringRef CommandName) {
89 // Value-initialize (=zero-initialize in this case) a new CommandInfo.
90 CommandInfo *Info = new (Allocator) CommandInfo();
93 // CommandInfo structure, so the ID numbers can potentially wrap around.
94 assert((NextID < (1 << CommandInfo::NumCommandIDBits))
103 const CommandInfo *CommandTraits::registerUnknownCommand(
105 CommandInfo *Info = createCommandInfoWithName(CommandName);
110 const CommandInfo *CommandTraits::registerBlockCommand(StringRef CommandName) {
111 CommandInfo *Info = createCommandInfoWithName(CommandName);
116 const CommandInfo *CommandTraits::getBuiltinCommandInfo(
123 const CommandInfo *CommandTraits::getRegisteredCommandInfo(
132 const CommandInfo *CommandTraits::getRegisteredCommandInfo(