/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/ |
H A D | ASTMatchers.h | 157 /// Matches any node. 163 /// Example: \c DeclarationMatcher(anything()) matches all declarations, e.g., 173 /// Matches the top declaration context. 183 /// matches "int X", but not "int Y". 187 /// Matches typedef declarations. 195 /// matches "typedef int X", but not "using Y = int" 199 /// Matches typedef name declarations. 207 /// matches "typedef int X" and "using Y = int" 211 /// Matches type alias declarations. 219 /// matches "using Y = int", but not "typedef int X" [all …]
|
H A D | ASTMatchersInternal.h | 12 // Matches(...) which is a predicate on an AST node. The Matches method's 300 /// Visits all matches that this BoundNodesTree represents. 368 virtual bool matches(const T &Node, 374 return matches(DynNode.getUnchecked<T>(), Finder, Builder); 383 /// Returns true if the matcher matches the provided node. 385 /// A subclass must implement this instead of Matches(). 389 /// Implements MatcherInterface::Matches. 390 bool matches(const T &Node, 416 /// Matches nodes for which all provided matchers match. 419 /// Matches nodes for which at least one of the provided matchers [all …]
|
/freebsd/contrib/googletest/googlemock/test/ |
H A D | gmock-matchers-comparisons_test.cc | 132 EXPECT_TRUE(m.Matches(2)); in TEST() 133 EXPECT_FALSE(m.Matches(3)); in TEST() 147 EXPECT_TRUE(m.Matches(4)); in TEST() 148 EXPECT_FALSE(m.Matches(5)); in TEST() 154 EXPECT_TRUE(m1.Matches(5)); in TEST() 155 EXPECT_FALSE(m1.Matches(6)); in TEST() 161 EXPECT_TRUE(m1.Matches(nullptr)); in TEST() 163 EXPECT_FALSE(m1.Matches(&n)); in TEST() 175 EXPECT_TRUE(m1.Matches(1)); in TEST() 176 EXPECT_FALSE(m1.Matches(2)); in TEST() [all …]
|
H A D | gmock-matchers-arithmetic_test.cc | 51 // Tests that Eq() matches a 2-tuple where the first field == the 55 EXPECT_TRUE(m.Matches(Tuple2(5L, 5))); in TEST() 56 EXPECT_FALSE(m.Matches(Tuple2(5L, 6))); in TEST() 65 // Tests that Ge() matches a 2-tuple where the first field >= the 69 EXPECT_TRUE(m.Matches(Tuple2(5L, 4))); in TEST() 70 EXPECT_TRUE(m.Matches(Tuple2(5L, 5))); in TEST() 71 EXPECT_FALSE(m.Matches(Tuple2(5L, 6))); in TEST() 80 // Tests that Gt() matches a 2-tuple where the first field > the 84 EXPECT_TRUE(m.Matches(Tuple2(5L, 4))); in TEST() 85 EXPECT_FALSE(m.Matches(Tuple2(5L, 5))); in TEST() [all …]
|
H A D | gmock-matchers-containers_test.cc | 108 // matches the matcher. 178 EXPECT_TRUE(m.Matches(&n)); in TEST() 180 EXPECT_FALSE(m.Matches(&n)); in TEST() 181 EXPECT_FALSE(m.Matches(nullptr)); in TEST() 188 EXPECT_TRUE(m.Matches(&x)); in TEST() 190 EXPECT_FALSE(m.Matches(&x)); in TEST() 191 EXPECT_FALSE(m.Matches(nullptr)); in TEST() 198 EXPECT_TRUE(m.Matches(&n)); in TEST() 200 EXPECT_FALSE(m.Matches(&n)); in TEST() 201 EXPECT_FALSE(m.Matches(nullptr)); in TEST() [all …]
|
/freebsd/contrib/kyua/utils/text/ |
H A D | regex_test.cpp | 41 const text::regex_matches matches = text::match_regex( in ATF_TEST_CASE_BODY() local 43 ATF_REQUIRE(!matches); in ATF_TEST_CASE_BODY() 44 ATF_REQUIRE_EQ(0, matches.count()); in ATF_TEST_CASE_BODY() 51 const text::regex_matches matches = text::match_regex( in ATF_TEST_CASE_BODY() local 53 ATF_REQUIRE(matches); in ATF_TEST_CASE_BODY() 54 ATF_REQUIRE_EQ(1, matches.count()); in ATF_TEST_CASE_BODY() 55 ATF_REQUIRE_EQ("foo and bar", matches.get(0)); in ATF_TEST_CASE_BODY() 62 const text::regex_matches matches = text::match_regex( in ATF_TEST_CASE_BODY() local 64 ATF_REQUIRE(matches); in ATF_TEST_CASE_BODY() 65 ATF_REQUIRE_EQ(2, matches.count()); in ATF_TEST_CASE_BODY() [all …]
|
/freebsd/sys/dev/pci/ |
H A D | pci_user.c | 99 u_int32_t num_matches; /* number of matches returned */ 100 u_int32_t matches; /* struct pci_conf ptr */ member 148 * structures. The first argument, 'matches', is an array of num_matches 150 * structure that will be compared to every entry in the matches array. 154 pci_conf_match_native(struct pci_match_conf *matches, int num_matches, in pci_conf_match_native() argument 159 if ((matches == NULL) || (match_buf == NULL) || (num_matches <= 0)) in pci_conf_match_native() 166 if (matches[i].flags == PCI_GETCONF_NO_MATCH) in pci_conf_match_native() 174 if (((matches[i].flags & PCI_GETCONF_MATCH_DOMAIN) != 0) in pci_conf_match_native() 176 matches[i].pc_sel.pc_domain)) in pci_conf_match_native() 179 if (((matches[i].flags & PCI_GETCONF_MATCH_BUS) != 0) in pci_conf_match_native() [all …]
|
/freebsd/contrib/nvi/regex/ |
H A D | re_format.7 | 56 It matches anything that matches one of the branches. 59 It matches a match for the first, followed by a match for the second, etc. 63 An atom followed by `*' matches a sequence of 0 or more matches of the atom. 64 An atom followed by `+' matches a sequence of 1 or more matches of the atom. 65 An atom followed by `?' matches a sequence of 0 or 1 matches of the atom. 74 and no comma matches 75 a sequence of exactly \fIi\fR matches of the atom. 77 containing one integer \fIi\fR and a comma matches 78 a sequence of \fIi\fR or more matches of the atom. 80 containing two integers \fIi\fR and \fIj\fR matches [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-cov/ |
H A D | CoverageFilters.h | 28 /// Matches specific functions that pass the requirement of this filter. 34 virtual bool matches(const coverage::CoverageMapping &CM, in matches() function 45 /// Matches functions that contain a specific string in their name. 52 bool matches(const coverage::CoverageMapping &CM, 56 /// Matches functions whose name matches a certain regular expression. 63 bool matches(const coverage::CoverageMapping &CM, 69 /// Matches functions whose name appears in a SpecialCaseList in the 78 bool matches(const coverage::CoverageMapping &CM, 82 /// Matches numbers that pass a certain threshold. 107 /// Matches functions whose region coverage percentage [all …]
|
H A D | CoverageFilters.cpp | 20 bool NameCoverageFilter::matches( in matches() function in NameCoverageFilter 27 bool NameRegexCoverageFilter::matches( in matches() function in NameRegexCoverageFilter 37 bool NameAllowlistCoverageFilter::matches( in matches() function in NameAllowlistCoverageFilter 43 bool RegionCoverageFilter::matches( in matches() function in RegionCoverageFilter 50 bool LineCoverageFilter::matches( in matches() function in LineCoverageFilter 61 bool CoverageFilters::matches(const coverage::CoverageMapping &CM, in matches() function in CoverageFilters 64 if (Filter->matches(CM, Function)) in matches() 78 bool CoverageFiltersMatchAll::matches( in matches() function in CoverageFiltersMatchAll 82 if (!Filter->matches(CM, Function)) in matches()
|
/freebsd/contrib/bmake/unit-tests/ |
H A D | varmod-match.mk | 22 # * matches 0 or more characters 23 # ? matches 1 character 24 # \x matches the character 'x' 28 # matches exactly the word 'e', twice. 33 # The pattern character '?' matches exactly 1 character, the pattern character 34 # '*' matches 0 or more characters. The whole pattern matches all words that 40 # A pattern without placeholders only matches itself. 79 # [...] matches 1 character from the listed characters 80 # [^...] matches 1 character from the unlisted characters 81 # [a-z] matches 1 character from the range 'a' to 'z' [all …]
|
/freebsd/lib/libc/regex/ |
H A D | re_format.7 | 71 It matches anything that matches one of the branches. 76 It matches a match for the first, followed by a match for the second, etc. 89 matches a sequence of 0 or more matches of the atom. 92 matches a sequence of 1 or more matches of the atom. 95 matches a sequence of 0 or 1 matches of the atom. 113 and no comma matches 116 matches of the atom. 120 and a comma matches 123 or more matches of the atom. 129 matches [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/TableGen/ |
H A D | StringMatcher.cpp | 30 StringMatcher::StringPair*> &Matches) { in FindFirstNonCommonLetter() argument 31 assert(!Matches.empty()); in FindFirstNonCommonLetter() 32 for (unsigned i = 0, e = Matches[0]->first.size(); i != e; ++i) { in FindFirstNonCommonLetter() 34 char Letter = Matches[0]->first[i]; in FindFirstNonCommonLetter() 36 for (const StringMatcher::StringPair *Match : Matches) in FindFirstNonCommonLetter() 41 return Matches[0]->first.size(); in FindFirstNonCommonLetter() 50 const std::vector<const StringPair *> &Matches, unsigned CharNo, in EmitStringMatcherForChar() argument 52 assert(!Matches.empty() && "Must have at least one string to match!"); in EmitStringMatcherForChar() 55 // If we have verified that the entire string matches, we're done: output the in EmitStringMatcherForChar() 57 if (CharNo == Matches[0]->first.size()) { in EmitStringMatcherForChar() [all …]
|
/freebsd/contrib/libedit/ |
H A D | filecomplete.c | 472 size_t matches; in completion_matches() local 474 matches = 0; in completion_matches() 476 while ((retstr = (*genfunc) (text, (int)matches)) != NULL) { in completion_matches() 478 if (matches + 3 >= match_list_len) { in completion_matches() 480 while (matches + 3 >= match_list_len) in completion_matches() 491 match_list[++matches] = retstr; in completion_matches() 501 for (; which <= matches; which++) { in completion_matches() 517 match_list[matches + 1] = NULL; in completion_matches() 536 * 'matches' is list of strings, 'num' is number of strings in 'matches', 537 * 'width' is maximum length of string in 'matches'. [all …]
|
/freebsd/bin/sh/ |
H A D | histedit.c | 473 *p = '\0'; /* so no more matches */ in fc_replace() 592 **add_match(char **matches, size_t i, size_t *size, char *match_copy) in add_match() argument 596 matches[i] = match_copy; in add_match() 599 matches = reallocarray(matches, *size, sizeof(matches[0])); in add_match() 602 return (matches); in add_match() 616 char **matches = NULL, **rmatches; in sh_matches() local 627 if ((matches = malloc(size * sizeof(matches[0]))) == NULL) in sh_matches() 653 rmatches = add_match(matches, ++i, &size, in sh_matches() 659 matches = rmatches; in sh_matches() 666 rmatches = add_match(matches, ++i, &size, strndup(bp + 2, bp[0])); in sh_matches() [all …]
|
/freebsd/contrib/libucl/ |
H A D | CMakeLists.txt | 34 IF(ENABLE_LUAJIT MATCHES "ON") 93 ELSE(ENABLE_LUAJIT MATCHES "ON") 117 ENDIF(ENABLE_LUAJIT MATCHES "ON") 125 IF(ENABLE_LUAJIT MATCHES "ON") 127 ELSE(ENABLE_LUAJIT MATCHES "ON") 129 ENDIF(ENABLE_LUAJIT MATCHES "ON") 137 IF(ENABLE_URL_INCLUDE MATCHES "ON") 161 ENDIF(ENABLE_URL_INCLUDE MATCHES "ON") 198 IF(ENABLE_URL_SIGN MATCHES "ON") 203 ENDIF(ENABLE_URL_SIGN MATCHES "ON") [all …]
|
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/ |
H A D | Highlighter.h | 55 /// Matches identifiers to variable or functions. 57 /// Matches any string or character literals in the language: "foo" or 'f' 59 /// Matches scalar value literals like '42' or '0.1'. 61 /// Matches all reserved keywords in the language. 63 /// Matches any comments in the language. 65 /// Matches commas: ',' 67 /// Matches one colon: ':' 69 /// Matches any semicolon: ';' 71 /// Matches operators like '+', '-', '%', '&', '=' 74 /// Matches '{' or '}' [all …]
|
/freebsd/usr.sbin/mptutil/ |
H A D | mpt_cam.c | 78 ccb.cdm.matches = calloc(1, bufsize); in fetch_path_id() 95 free(ccb.cdm.matches); in fetch_path_id() 105 free(ccb.cdm.matches); in fetch_path_id() 111 ccb.cdm.matches[0].type != DEV_MATCH_BUS) { in fetch_path_id() 112 free(ccb.cdm.matches); in fetch_path_id() 115 *path_id = ccb.cdm.matches[0].result.bus_result.path_id; in fetch_path_id() 116 free(ccb.cdm.matches); in fetch_path_id() 152 ccb.cdm.matches = calloc(1, bufsize); in mpt_query_disk() 169 free(ccb.cdm.matches); in mpt_query_disk() 179 free(ccb.cdm.matches); in mpt_query_disk() [all …]
|
/freebsd/contrib/googletest/docs/reference/ |
H A D | matchers.md | 3 A **matcher** matches a *single* argument. You can use it inside `ON_CALL()` or 8 | `EXPECT_THAT(actual_value, matcher)` | Asserts that `actual_value` matches `matcher`. | 95 | `ContainsRegex(string)` | `argument` matches the given regular expression. | 99 | `MatchesRegex(string)` | `argument` matches the given regular expression with the match startin… 105 | `WhenBase64Unescaped(m)` | `argument` is a base-64 escaped string whose unescaped string matches … 123 | `Contains(e)` | `argument` contains an element that matches `e`, which can be either a value or a… 124 …t match `e`, which can be either a value or a matcher, and the number of matches is `n`, which can… 125 | `Each(e)` | `argument` is a container where *every* element matches `e`, which can be either a va… 126 …1, ..., en)` | `argument` has `n + 1` elements, where the *i*-th element matches `ei`, which can b… 129 …, end)`, `IsSubsetOf(array)`, or `IsSubsetOf(array, count)` | `argument` matches `UnorderedElement… [all …]
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_dmi.c | 74 /* Match a system against the struct, all matches must be ok */ 81 for (i = 0; i < nitems(dsi->matches); i++) { in linux_dmi_matches() 82 slot = dsi->matches[i].slot; in linux_dmi_matches() 88 if (dsi->matches[i].exact_match) { in linux_dmi_matches() 89 if (dmi_match(slot, dsi->matches[i].substr)) in linux_dmi_matches() 92 dsi->matches[i].substr) != NULL) { in linux_dmi_matches() 119 for (dsi = list; dsi->matches[0].slot != 0; dsi++) { in linux_dmi_first_match() 130 * Return the number of matches. 136 int matches = 0; in linux_dmi_check_system() local 138 for (dsi = sysid; dsi->matches[0].slot != 0; dsi++) { in linux_dmi_check_system() [all …]
|
/freebsd/contrib/googletest/googletest/include/gtest/ |
H A D | gtest-death-test.h | 126 // c matches any literal character c 127 // \\d matches any decimal digit 128 // \\D matches any character that's not a decimal digit 129 // \\f matches \f 130 // \\n matches \n 131 // \\r matches \r 132 // \\s matches any ASCII whitespace, including \n 133 // \\S matches any character that's not a whitespace 134 // \\t matches \t 135 // \\v matches \v [all …]
|
/freebsd/contrib/tcp_wrappers/ |
H A D | hosts_access.5 | 23 Access will be granted when a (daemon,client) pair matches an entry in 26 Otherwise, access will be denied when a (daemon,client) pair matches an 74 example, the pattern `.tue.nl\' matches the host name 79 pattern `131.155.\' matches the address of (almost) every host on the 84 member of the specified netgroup. Netgroup matches are not supported 90 pattern `131.155.72.0/255.255.254.0\' matches every address in the 97 `[3ffe:505:2:1::]/64\' matches every address in the range 101 name. A host name or address is matched if it matches any host name 109 The universal wildcard, always matches. 111 Matches any host whose name does not contain a dot character. [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | Regex.cpp | 78 /// matches it contains. 83 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches, in match() argument 93 unsigned nmatch = Matches ? preg->re_nsub+1 : 0; in match() 119 if (Matches) { // match position requested in match() 120 Matches->clear(); in match() 125 Matches->push_back(StringRef()); in match() 129 Matches->push_back(StringRef(String.data()+pm[i].rm_so, in match() 139 SmallVector<StringRef, 8> Matches; in sub() 142 if (!match(String, &Matches, Error)) in sub() 147 std::string Res(String.begin(), Matches[ in sub() 135 SmallVector<StringRef, 8> Matches; sub() local [all...] |
/freebsd/contrib/googletest/googletest/src/ |
H A D | gtest-matchers.cc | 44 // Constructs a matcher that matches a const std::string& whose value is 48 // Constructs a matcher that matches a const std::string& whose value is 54 // Constructs a matcher that matches a std::string whose value is equal to 58 // Constructs a matcher that matches a std::string whose value is equal to 63 // Constructs a matcher that matches a const StringView& whose value is 69 // Constructs a matcher that matches a const StringView& whose value is 75 // Constructs a matcher that matches a const StringView& whose value is 81 // Constructs a matcher that matches a StringView whose value is equal to 85 // Constructs a matcher that matches a StringView whose value is equal to 91 // Constructs a matcher that matches a StringView whose value is equal to
|
/freebsd/contrib/llvm-project/lldb/source/Commands/ |
H A D | CommandObjectHelp.cpp | 90 StringList matches; in DoExecute() local 92 cmd_obj = m_interpreter.GetCommandObject(command_name, &matches); in DoExecute() 95 StringList matches; in DoExecute() local 103 matches.Clear(); in DoExecute() 113 sub_cmd_obj->GetSubcommandObject(sub_command.c_str(), &matches); in DoExecute() 114 if (found_cmd == nullptr || matches.GetSize() > 1) { in DoExecute() 125 if (matches.GetSize() >= 2) { in DoExecute() 128 size_t num_matches = matches.GetSize(); in DoExecute() 130 s.Printf("\n\t%s", matches.GetStringAtIndex(match_idx)); in DoExecute() 154 // Don't use AliasExists here, that only checks exact name matches. If in DoExecute() [all …]
|