Lines Matching defs:matches

331                          "directly into a function whose name matches the "
923 const char *cmd_str, bool include_aliases, StringList &matches,
925 AddNamesMatchingPartialString(m_command_dict, cmd_str, matches,
929 AddNamesMatchingPartialString(m_alias_dict, cmd_str, matches,
933 return matches.GetSize();
995 bool exact, StringList *matches,
1026 // We will only get into here if we didn't find any exact matches.
1032 if (matches == nullptr)
1033 matches = &local_matches;
1042 // empty CommandObjectSP and the list of matches.
1046 *matches, descriptions);
1050 cmd.assign(matches->GetStringAtIndex(0));
1058 *matches, descriptions);
1062 cmd.assign(matches->GetStringAtIndex(num_cmd_matches));
1070 *matches, descriptions);
1075 matches->GetStringAtIndex(num_cmd_matches + num_alias_matches));
1084 m_user_mw_dict, cmd_str, *matches, descriptions);
1088 cmd.assign(matches->GetStringAtIndex(num_cmd_matches + num_alias_matches +
1111 } else if (matches && command_sp) {
1112 matches->AppendString(cmd_str);
1237 StringList *matches,
1239 // Try to find a match among commands and aliases. Allowing inexact matches,
1240 // but perferring exact matches.
1242 matches, descriptions)
1247 llvm::StringRef cmd, StringList *matches, StringList *descriptions) const {
1255 if (matches)
1256 matches->AppendString(exact_cmd->GetCommandName());
1272 // We didn't have an exact command, so now look for partial matches.
1274 StringList *matches_ptr = matches ? matches : &tmp_list;
1294 StringList matches;
1297 AddNamesMatchingPartialString(m_alias_dict, cmd, matches);
1308 full_name.assign(matches.GetStringAtIndex(0));
3399 StringList matches;
3408 cmd_obj = GetCommandObject(next_word, &matches);
3412 matches.Clear();
3464 const size_t num_matches = matches.GetSize();
3465 if (matches.GetSize() > 1) {
3467 error_msg.Printf("Ambiguous command '%s'. Possible matches:\n",
3471 error_msg.Printf("\t%s\n", matches.GetStringAtIndex(i));