/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 | 55 EXPECT_TRUE(m.Matches(Tuple2(5L, 5))); in TEST() 56 EXPECT_FALSE(m.Matches(Tuple2(5L, 6))); in TEST() 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() 84 EXPECT_TRUE(m.Matches(Tuple2(5L, 4))); in TEST() 85 EXPECT_FALSE(m.Matches(Tuple2(5L, 5))); in TEST() 86 EXPECT_FALSE(m.Matches(Tuple2(5L, 6))); in TEST() 99 EXPECT_TRUE(m.Matches(Tuple2(5L, 6))); in TEST() 100 EXPECT_TRUE(m.Matches(Tuple2(5L, 5))); in TEST() [all …]
|
H A D | gmock-matchers-containers_test.cc | 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() 209 EXPECT_TRUE(m.Matches(p)); in TEST() [all …]
|
H A D | gmock-matchers-misc_test.cc | 58 EXPECT_TRUE(m.Matches(n)); in TEST() 62 EXPECT_FALSE(m.Matches(other)); in TEST() 66 EXPECT_TRUE(m.Matches(n_ref)); in TEST() 73 EXPECT_TRUE(m.Matches(n)); in TEST() 77 EXPECT_FALSE(m.Matches(other)); in TEST() 84 EXPECT_TRUE(m.Matches(n)); in TEST() 124 EXPECT_TRUE(m.Matches(n1)); in TEST() 125 EXPECT_FALSE(m.Matches(n2)); in TEST() 133 EXPECT_FALSE(m.Matches(n1)); in TEST() 134 EXPECT_TRUE(m.Matches(n2)); in TEST() [all …]
|
H A D | gmock_link_test.h | 632 EXPECT_TRUE(m.Matches(helper)); in TEST() 635 EXPECT_TRUE(m2.Matches(&helper)); in TEST() 643 EXPECT_TRUE(m.Matches(helper)); in TEST() 646 EXPECT_TRUE(m2.Matches(&helper)); in TEST() 652 EXPECT_TRUE(m.Matches(nullptr)); in TEST() 660 EXPECT_TRUE(m.Matches(&n)); in TEST() 666 EXPECT_TRUE(m.Matches(nullptr)); in TEST() 672 EXPECT_TRUE(m.Matches(1)); in TEST() 678 EXPECT_TRUE(m.Matches(1)); in TEST() 684 EXPECT_FALSE(m.Matches(1)); in TEST() [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() 57 if (CharNo == Matches[0]->first.size()) { in EmitStringMatcherForChar() 58 if (Matches.size() > 1 && !IgnoreDuplicates) in EmitStringMatcherForChar() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | Regex.cpp | 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[0].begin()); in sub() 179 if (RefValue < Matches in sub() 135 SmallVector<StringRef, 8> Matches; sub() local [all...] |
H A D | UnicodeNameToCodepoint.cpp | 196 bool Matches; in compareNode() 198 std::tie(C, Matches, Value) = in compareNode() local 201 if (Matches) { in compareNode() 384 bool Matches; in nameToCodepoint() 386 std::tie(Node, Matches, Value) = compareNode(0, Name, Strict, Buffer); in nameToCodepoint() local 387 if (Matches) { in nameToCodepoint() 425 llvm::SmallVector<MatchForCodepointName> Matches; in nearestMatchesForCodepointName() 426 Matches.reserve(MaxMatchesCount + 1); in nearestMatchesForCodepointName() 431 if (Matches.size() == MaxMatchesCount) in nearestMatchesForCodepointName() 445 Matches, Distanc in nearestMatchesForCodepointName() 428 llvm::SmallVector<MatchForCodepointName> Matches; nearestMatchesForCodepointName() local [all...] |
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
H A D | NativeEnumTypes.cpp | 36 Matches.push_back(*TI); in NativeEnumTypes() 45 Matches.push_back(*TI); in NativeEnumTypes() 54 : Matches(std::move(Indices)), Index(0), Session(PDBSession) {} in NativeEnumTypes() 57 return static_cast<uint32_t>(Matches.size()); in getChildCount() 61 if (N < Matches.size()) { in getChildAtIndex() 62 SymIndexId Id = Session.getSymbolCache().findSymbolByTypeIndex(Matches[N]); in getChildAtIndex()
|
/freebsd/contrib/llvm-project/clang/lib/InstallAPI/ |
H A D | HeaderFile.cpp | 29 SmallVector<StringRef, 4> Matches; in createIncludeHeaderName() local 30 HeaderFile::getFrameworkIncludeRule().match(FullPath, &Matches); in createIncludeHeaderName() 32 if (Matches.size() != 4) in createIncludeHeaderName() 35 return Matches[1].drop_front(Matches[1].rfind('/') + 1).str() + "/" + in createIncludeHeaderName() 36 Matches[3].str(); in createIncludeHeaderName()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/ |
H A D | Markup.cpp | 157 SmallVector<StringRef> Matches; in parseTextOutsideMarkup() local 158 while (SGRSyntax.match(Text, &Matches)) { in parseTextOutsideMarkup() 160 if (Matches.begin()->begin() != Text.begin()) in parseTextOutsideMarkup() 161 Buffer.push_back(textNode(takeTo(Text, Matches.begin()->begin()))); in parseTextOutsideMarkup() 163 Buffer.push_back(textNode(*Matches.begin())); in parseTextOutsideMarkup() 164 advanceTo(Text, Matches.begin()->end()); in parseTextOutsideMarkup()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/TableGen/ |
H A D | StringMatcher.h | 36 const std::vector<StringPair> &Matches; variable 42 : StrVariableName(strVariableName), Matches(matches), OS(os) {} in StringMatcher() 47 bool EmitStringMatcherForChar(const std::vector<const StringPair *> &Matches,
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | ExprMutationAnalyzer.cpp | 191 const Stmt *tryEachMatch(ArrayRef<ast_matchers::BoundNodes> Matches, in tryEachMatch() argument 194 for (const auto &Nodes : Matches) { in tryEachMatch() 310 ExprMutationAnalyzer::Analyzer::findExprMutation(ArrayRef<BoundNodes> Matches) { in findExprMutation() argument 311 return tryEachMatch<Expr>(Matches, this, in findExprMutation() 316 ExprMutationAnalyzer::Analyzer::findDeclMutation(ArrayRef<BoundNodes> Matches) { in findDeclMutation() argument 317 return tryEachMatch<Decl>(Matches, this, in findDeclMutation() 322 ArrayRef<ast_matchers::BoundNodes> Matches) { in findExprPointeeMutation() argument 324 Matches, this, &ExprMutationAnalyzer::Analyzer::findPointeeMutation); in findExprPointeeMutation() 328 ArrayRef<ast_matchers::BoundNodes> Matches) { in findDeclPointeeMutation() argument 330 Matches, this, &ExprMutationAnalyzer::Analyzer::findPointeeMutation); in findDeclPointeeMutation() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | RunLoopAutoreleaseLeakChecker.cpp | 168 auto Matches = match(GroupM, *D, AM.getASTContext()); in checkTempObjectsInSamePool() local 169 for (BoundNodes Match : Matches) in checkTempObjectsInSamePool() 188 auto Matches = match(GroupM, *D, AM.getASTContext()); in checkTempObjectsInNoPool() local 190 for (BoundNodes Match : Matches) in checkTempObjectsInNoPool()
|
H A D | PointerIterationChecker.cpp | 87 auto Matches = match(MatcherM, *D, AM.getASTContext()); in checkASTCodeBody() local 88 for (const auto &Match : Matches) in checkASTCodeBody()
|
H A D | PointerSortingChecker.cpp | 101 auto Matches = match(MatcherM, *D, AM.getASTContext()); in checkASTCodeBody() local 102 for (const auto &Match : Matches) in checkASTCodeBody()
|
H A D | OSObjectCStyleCast.cpp | 113 auto Matches = in checkASTCodeBody() local 115 for (BoundNodes Match : Matches) in checkASTCodeBody()
|
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Analyses/ |
H A D | ExprMutationAnalyzer.h | 63 const Stmt *findExprMutation(ArrayRef<ast_matchers::BoundNodes> Matches); 64 const Stmt *findDeclMutation(ArrayRef<ast_matchers::BoundNodes> Matches); 66 findExprPointeeMutation(ArrayRef<ast_matchers::BoundNodes> Matches); 68 findDeclPointeeMutation(ArrayRef<ast_matchers::BoundNodes> Matches);
|
/freebsd/contrib/llvm-project/clang/utils/TableGen/ |
H A D | ClangCommentCommandInfoEmitter.cpp | 63 std::vector<StringMatcher::StringPair> Matches; in EmitClangCommentCommandInfo() local 69 Matches.emplace_back(std::move(Name), std::move(Return)); in EmitClangCommentCommandInfo() 74 StringMatcher("Name", Matches, OS).Emit(); in EmitClangCommentCommandInfo()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | LoopUnrolling.cpp | 276 auto Matches = match(forLoopMatcher(), *LoopStmt, ASTCtx); in shouldCompletelyUnroll() local 277 if (Matches.empty()) in shouldCompletelyUnroll() 280 const auto *CounterVarRef = Matches[0].getNodeAs<DeclRefExpr>("initVarRef"); in shouldCompletelyUnroll() 282 Matches[0].getNodeAs<IntegerLiteral>("boundNum")->getValue(); in shouldCompletelyUnroll() 284 Matches[0].getNodeAs<IntegerLiteral>("initNum")->getValue(); in shouldCompletelyUnroll() 285 auto CondOp = Matches[0].getNodeAs<BinaryOperator>("conditionOperator"); in shouldCompletelyUnroll()
|
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/ |
H A D | ModuleSpec.h | 226 bool Matches(const ModuleSpec &match_module_spec, in Matches() function 338 if (spec.Matches(module_spec, exact_arch_match)) { in FindMatchingModuleSpec() 348 if (spec.Matches(module_spec, exact_arch_match)) { in FindMatchingModuleSpec() 364 if (spec.Matches(module_spec, exact_arch_match)) in FindMatchingModuleSpecs() 374 if (spec.Matches(module_spec, exact_arch_match)) in FindMatchingModuleSpecs()
|
/freebsd/contrib/llvm-project/clang/lib/ExtractAPI/ |
H A D | ExtractAPIConsumer.cpp | 149 SmallVector<StringRef, 4> Matches; in getRelativeIncludeName() local 151 File, &Matches); in getRelativeIncludeName() 153 if (Matches.size() != 4) in getRelativeIncludeName() 157 (Matches[1].drop_front(Matches[1].rfind('/') + 1) + "/" + in getRelativeIncludeName() 158 Matches[3]) in getRelativeIncludeName()
|
/freebsd/share/i18n/csmapper/APPLE/ |
H A D | CENTEURO%UCS.src | 28 # c02 2005-Apr-04 Update header comments. Matches internal xml 30 # b3,c1 2002-Dec-19 Update URLs. Matches internal utom<b1>. 31 # b02 1999-Sep-22 Update contact e-mail address. Matches 35 # mapping changes. Matches internal utom<n3>, 39 # Matches internal ufrm<n5>.
|
H A D | UCS%CENTEURO.src | 28 # c02 2005-Apr-04 Update header comments. Matches internal xml 30 # b3,c1 2002-Dec-19 Update URLs. Matches internal utom<b1>. 31 # b02 1999-Sep-22 Update contact e-mail address. Matches 35 # mapping changes. Matches internal utom<n3>, 39 # Matches internal ufrm<n5>.
|
H A D | CYRILLIC%UCS.src | 28 # c03 2005-Apr-05 Update header comments. Matches internal xml 30 # b3,c1 2002-Dec-19 Update URLs, notes. Matches internal 35 # Update contact e-mail address. Matches 39 # mapping changes. Matches internal utom<n3>, 43 # Matches internal ufrm<n5>.
|