| /src/contrib/googletest/googlemock/test/ |
| H A D | gmock-matchers-comparisons_test.cc | 134 EXPECT_TRUE(m.Matches(2)); in TEST() 135 EXPECT_FALSE(m.Matches(3)); in TEST() 149 EXPECT_TRUE(m.Matches(4)); in TEST() 150 EXPECT_FALSE(m.Matches(5)); in TEST() 156 EXPECT_TRUE(m1.Matches(5)); in TEST() 157 EXPECT_FALSE(m1.Matches(6)); in TEST() 163 EXPECT_TRUE(m1.Matches(nullptr)); in TEST() 165 EXPECT_FALSE(m1.Matches(&n)); in TEST() 177 EXPECT_TRUE(m1.Matches(1)); in TEST() 178 EXPECT_FALSE(m1.Matches(2)); in TEST() [all …]
|
| H A D | gmock-matchers-arithmetic_test.cc | 58 EXPECT_TRUE(m.Matches(Tuple2(5L, 5))); in TEST() 59 EXPECT_FALSE(m.Matches(Tuple2(5L, 6))); in TEST() 72 EXPECT_TRUE(m.Matches(Tuple2(5L, 4))); in TEST() 73 EXPECT_TRUE(m.Matches(Tuple2(5L, 5))); in TEST() 74 EXPECT_FALSE(m.Matches(Tuple2(5L, 6))); in TEST() 87 EXPECT_TRUE(m.Matches(Tuple2(5L, 4))); in TEST() 88 EXPECT_FALSE(m.Matches(Tuple2(5L, 5))); in TEST() 89 EXPECT_FALSE(m.Matches(Tuple2(5L, 6))); in TEST() 102 EXPECT_TRUE(m.Matches(Tuple2(5L, 6))); in TEST() 103 EXPECT_TRUE(m.Matches(Tuple2(5L, 5))); in TEST() [all …]
|
| H A D | gmock-matchers-containers_test.cc | 179 EXPECT_TRUE(m.Matches(&n)); in TEST() 181 EXPECT_FALSE(m.Matches(&n)); in TEST() 182 EXPECT_FALSE(m.Matches(nullptr)); in TEST() 189 EXPECT_TRUE(m.Matches(&x)); in TEST() 191 EXPECT_FALSE(m.Matches(&x)); in TEST() 192 EXPECT_FALSE(m.Matches(nullptr)); in TEST() 199 EXPECT_TRUE(m.Matches(&n)); in TEST() 201 EXPECT_FALSE(m.Matches(&n)); in TEST() 202 EXPECT_FALSE(m.Matches(nullptr)); in TEST() 210 EXPECT_TRUE(m.Matches(p)); in TEST() [all …]
|
| H A D | gmock-matchers-misc_test.cc | 59 EXPECT_TRUE(m.Matches(n)); in TEST() 63 EXPECT_FALSE(m.Matches(other)); in TEST() 67 EXPECT_TRUE(m.Matches(n_ref)); in TEST() 74 EXPECT_TRUE(m.Matches(n)); in TEST() 78 EXPECT_FALSE(m.Matches(other)); in TEST() 85 EXPECT_TRUE(m.Matches(n)); in TEST() 125 EXPECT_TRUE(m.Matches(n1)); in TEST() 126 EXPECT_FALSE(m.Matches(n2)); in TEST() 134 EXPECT_FALSE(m.Matches(n1)); in TEST() 135 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 …]
|
| /src/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 …]
|
| /src/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() local 142 if (!match(String, &Matches, Error)) in sub() 147 std::string Res(String.begin(), Matches[0].begin()); in sub() 179 if (RefValue < Matches.size()) in sub() [all …]
|
| H A D | UnicodeNameToCodepoint.cpp | 196 bool Matches; in compareNode() local 198 std::tie(C, Matches, Value) = in compareNode() 201 if (Matches) { in compareNode() 384 bool Matches; in nameToCodepoint() local 386 std::tie(Node, Matches, Value) = compareNode(0, Name, Strict, Buffer); in nameToCodepoint() 387 if (Matches) { in nameToCodepoint() 425 llvm::SmallVector<MatchForCodepointName> Matches; in nearestMatchesForCodepointName() local 426 Matches.reserve(MaxMatchesCount + 1); in nearestMatchesForCodepointName() 431 if (Matches.size() == MaxMatchesCount) in nearestMatchesForCodepointName() 445 Matches, Distance, in nearestMatchesForCodepointName() [all …]
|
| /src/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()
|
| /src/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()
|
| /src/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()
|
| /src/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 …]
|
| /src/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,
|
| /src/contrib/llvm-project/clang/utils/TableGen/ |
| H A D | ClangCommentHTMLTagsEmitter.cpp | 24 std::vector<StringMatcher::StringPair> Matches; in EmitClangCommentHTMLTags() local 26 Matches.emplace_back(std::string(Tag->getValueAsString("Spelling")), in EmitClangCommentHTMLTags() 33 StringMatcher("Name", Matches, OS).Emit(); in EmitClangCommentHTMLTags()
|
| 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()
|
| /src/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);
|
| /src/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 | GCDAntipatternChecker.cpp | 212 auto Matches = match(SemaphoreMatcherM, *D->getBody(), AM.getASTContext()); in checkASTCodeBody() local 213 for (BoundNodes Match : Matches) in checkASTCodeBody() 217 Matches = match(GroupMatcherM, *D->getBody(), AM.getASTContext()); in checkASTCodeBody() 218 for (BoundNodes Match : Matches) in checkASTCodeBody()
|
| 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()
|
| /src/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()
|
| H A D | LoopWidening.cpp | 71 auto Matches = match( in getWidenedLoopState() local 75 for (BoundNodes Match : Matches) { in getWidenedLoopState()
|
| /src/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()
|
| /src/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()
|