| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | RangeSelectorTest.cpp | 72 TestMatch Match = in selectFromTrivial() local 74 return Selector(Match.Result); in selectFromTrivial() 145 R(Match.Result), in TEST() 165 (*R)(Match.Result), in TEST() 214 TestMatch Match = in TEST() local 230 TestMatch Match = in TEST() local 246 TestMatch Match = in TEST() local 509 name(Ref)(Match.Result), in TEST() 573 TestMatch Match = in TEST() local 647 select(statements(ID), Match), in TEST() [all …]
|
| H A D | CommentHandlerTest.cpp | 154 Verifier.Match("// comment 1", 1, 13); in TEST() 155 Verifier.Match("// comment 2", 3, 3); in TEST() 188 Verifier.Match("// visible_1", 1, 21); in TEST() 189 Verifier.Match("// visible_2", 2, 21); in TEST() 190 Verifier.Match("// visible_6", 6, 21); in TEST() 191 Verifier.Match("// visible_7", 7, 21); in TEST() 192 Verifier.Match("// visible_8", 8, 21); in TEST() 193 Verifier.Match("// visible_9", 9, 21); in TEST() 208 Verifier.Match(Source, 1, 1); in TEST() 219 Verifier.Match("// visible_2", 2, 14); in TEST() [all …]
|
| H A D | TestVisitor.h | 134 void DisallowMatch(Twine Match, unsigned Line, unsigned Column) { in DisallowMatch() argument 135 DisallowedMatches.push_back(MatchCandidate(Match, Line, Column)); in DisallowMatch() 144 void ExpectMatch(Twine Match, unsigned Line, unsigned Column, 146 ExpectedMatches.push_back(ExpectedMatch(Match, Line, Column, Times)); 163 void Match(StringRef Name, SourceLocation Location) { in Match() function 210 MatchCandidate const &Match) { 211 return Stream << Match.ExpectedName 212 << " at " << Match.LineNumber << ":" << Match.ColumnNumber;
|
| /llvm-project-15.0.7/clang/lib/Tooling/Transformer/ |
| H A D | Stencil.cpp | 50 auto NodeOrErr = getNode(Match.Nodes, Id); in printNode() 76 Error eval(const MatchFinder::MatchResult &Match, in eval() argument 94 Error eval(const MatchFinder::MatchResult &Match, in eval() argument 96 return printNode(Id, Match, Result); in eval() 149 return printNode(Id, Match, Result); in eval() 223 auto RawRange = Selector(Match); in eval() 227 *RawRange, *Match.SourceManager, Match.Context->getLangOpts()); in eval() 286 return Member->eval(Match, Result); in eval() 308 auto &M = Match.Nodes.getMap(); in eval() 310 ->eval(Match, Result); in eval() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | FuzzyMatch.cpp | 83 Scores[0][0][Match] = {AwfulScore, Miss}; 86 for (Action A : {Miss, Match}) 220 Scores[0][W + 1][Match] = {AwfulScore, Miss}; in buildGraph() 229 MatchMissScore -= skipPenalty(W, Match); in buildGraph() 238 allowMatch(P, W, Match) in buildGraph() 239 ? PreMatch[Match].Score + matchBonus(P, W, Match) in buildGraph() 293 if (W == 0 || Last == Match) in matchBonus() 336 ? Match in dumpLast() 343 if (Last == Match) in dumpLast() 356 if (A[WordN - 1] == Match) in dumpLast() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonGenExtract.cpp | 111 if (!Match) { in INITIALIZE_PASS_DEPENDENCY() 118 if (!Match) { in INITIALIZE_PASS_DEPENDENCY() 122 Match = match(In, m_And(m_Shl(m_Value(BF), m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 124 if (Match && NoSR0) in INITIALIZE_PASS_DEPENDENCY() 127 if (!Match) { in INITIALIZE_PASS_DEPENDENCY() 131 Match = match(In, m_And(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 134 if (!Match) { in INITIALIZE_PASS_DEPENDENCY() 138 Match = match(In, m_And(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 141 if (!Match) { in INITIALIZE_PASS_DEPENDENCY() 148 if (!Match) { in INITIALIZE_PASS_DEPENDENCY() [all …]
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | RunLoopAutoreleaseLeakChecker.cpp | 80 static void emitDiagnostics(BoundNodes &Match, in emitDiagnostics() argument 91 const auto *ME = Match.getNodeAs<ObjCMessageExpr>(OtherMsgBind); in emitDiagnostics() 95 Match.getNodeAs<ObjCAutoreleasePoolStmt>(AutoreleasePoolBind); in emitDiagnostics() 97 Match.getNodeAs<ObjCAutoreleasePoolStmt>(OtherStmtAutoreleasePoolBind); in emitDiagnostics() 100 const auto *RL = Match.getNodeAs<ObjCMessageExpr>(RunLoopBind); in emitDiagnostics() 101 const auto *RLR = Match.getNodeAs<Stmt>(RunLoopRunBind); in emitDiagnostics() 169 for (BoundNodes Match : Matches) in checkTempObjectsInSamePool() local 170 emitDiagnostics(Match, D, BR, AM, Chkr); in checkTempObjectsInSamePool() 190 for (BoundNodes Match : Matches) in checkTempObjectsInNoPool() local 191 emitDiagnostics(Match, D, BR, AM, Chkr); in checkTempObjectsInNoPool()
|
| H A D | ObjCAutoreleaseWriteChecker.cpp | 111 static void emitDiagnostics(BoundNodes &Match, const Decl *D, BugReporter &BR, in emitDiagnostics() argument 116 const auto *PVD = Match.getNodeAs<ParmVarDecl>(ParamBind); in emitDiagnostics() 121 const auto *MarkedStmt = Match.getNodeAs<Expr>(ProblematicWriteBind); in emitDiagnostics() 126 MarkedStmt = Match.getNodeAs<Expr>(CapturedBind); in emitDiagnostics() 136 bool IsMethod = Match.getNodeAs<ObjCMethodDecl>(IsMethodBind) != nullptr; in emitDiagnostics() 138 bool IsARP = Match.getNodeAs<ObjCAutoreleasePoolStmt>(IsARPBind) != nullptr; in emitDiagnostics() 230 for (BoundNodes Match : Matches) in checkASTCodeBody() local 231 emitDiagnostics(Match, D, BR, AM, this); in checkASTCodeBody()
|
| H A D | PointerIterationChecker.cpp | 35 static void emitDiagnostics(const BoundNodes &Match, const Decl *D, in emitDiagnostics() argument 40 const auto *MarkedStmt = Match.getNodeAs<Stmt>(WarnAtNode); in emitDiagnostics() 88 for (const auto &Match : Matches) in checkASTCodeBody() local 89 emitDiagnostics(Match, D, BR, AM, this); in checkASTCodeBody()
|
| H A D | PointerSortingChecker.cpp | 35 static void emitDiagnostics(const BoundNodes &Match, const Decl *D, in emitDiagnostics() argument 40 const auto *MarkedStmt = Match.getNodeAs<CallExpr>(WarnAtNode); in emitDiagnostics() 102 for (const auto &Match : Matches) in checkASTCodeBody() local 103 emitDiagnostics(Match, D, BR, AM, this); in checkASTCodeBody()
|
| /llvm-project-15.0.7/llvm/lib/TableGen/ |
| H A D | StringMatcher.cpp | 35 for (const StringMatcher::StringPair *Match : Matches) in FindFirstNonCommonLetter() local 36 if (Match->first[i] != Letter) in FindFirstNonCommonLetter() 78 for (const StringPair *Match : Matches) in EmitStringMatcherForChar() local 79 MatchesByLetter[Match->first[CharNo]].push_back(Match); in EmitStringMatcherForChar() 137 for (const StringPair &Match : Matches) in Emit() local 138 MatchesByLength[Match.first.size()].push_back(&Match); in Emit()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | FormatString.cpp | 348 return Match; in matchesType() 368 return Match; in matchesType() 385 return Match; in matchesType() 407 return T == C.IntTy ? Match : NoMatch; in matchesType() 431 return Match; in matchesType() 452 return Match; in matchesType() 463 return Match; in matchesType() 465 return WInt == PromoArg ? Match : NoMatch; in matchesType() 470 return Match; in matchesType() 481 return Match; in matchesType() [all …]
|
| /llvm-project-15.0.7/lldb/unittests/Utility/ |
| H A D | FileSpecTest.cpp | 406 TEST(FileSpecTest, Match) { in TEST() argument 410 EXPECT_TRUE(Match("/foo/bar", "/foo/bar")); in TEST() 413 EXPECT_FALSE(Match("/foo/bar", "bar")); in TEST() 414 EXPECT_FALSE(Match("/foo/bar", "")); in TEST() 416 EXPECT_TRUE(Match("bar", "/foo/bar")); in TEST() 417 EXPECT_FALSE(Match("bar", "/foo/baz")); in TEST() 418 EXPECT_TRUE(Match("bar", "bar")); in TEST() 419 EXPECT_FALSE(Match("bar", "baz")); in TEST() 420 EXPECT_FALSE(Match("bar", "")); in TEST() 422 EXPECT_TRUE(Match("", "/foo/bar")); in TEST() [all …]
|
| /llvm-project-15.0.7/flang/unittests/Evaluate/ |
| H A D | testing.h | 19 #define MATCH(want, got) testing::Match(__FILE__, __LINE__, (want), #got, (got)) 27 FailureDetailPrinter Match(const char *file, int line, std::uint64_t want, 29 FailureDetailPrinter Match(const char *file, int line, const char *want, 31 FailureDetailPrinter Match(const char *file, int line, const std::string &want,
|
| H A D | testing.cpp | 37 FailureDetailPrinter Match(const char *file, int line, std::uint64_t want, in Match() function 50 FailureDetailPrinter Match(const char *file, int line, const char *want, in Match() function 63 FailureDetailPrinter Match(const char *file, int line, const std::string &want, in Match() function 65 return Match(file, line, want.data(), gots, got); in Match()
|
| /llvm-project-15.0.7/llvm/test/MC/RISCV/ |
| H A D | rva-aliases-valid.s | 23 # CHECK-S Match the .s output with aliases enabled 24 # CHECK-S-NOALIAS Match the .s output with aliases disabled 25 # CHECK-OBJ Match the objdumped object output with aliases enabled 26 # CHECK-OBJ-NOALIAS Match the objdumped object output with aliases enabled 27 # CHECK-S-OBJ Match both the .s and objdumped object output with 29 # CHECK-S-OBJ-NOALIAS Match both the .s and objdumped object output with
|
| /llvm-project-15.0.7/compiler-rt/test/fuzzer/ |
| H A D | SimpleDictionaryTest.cpp | 21 size_t Match = 0; in LLVMFuzzerTestOneInput() local 24 Match++; in LLVMFuzzerTestOneInput() 25 if (Match == strlen(Expected)) { in LLVMFuzzerTestOneInput()
|
| /llvm-project-15.0.7/compiler-rt/lib/asan/ |
| H A D | asan_suppressions.cpp | 50 return suppression_ctx->Match(interceptor_name, kInterceptorName, &s); in IsInterceptorSuppressed() 63 return suppression_ctx->Match(global_var_name, kODRViolation, &s); in IsODRViolationSuppressed() 79 if (suppression_ctx->Match(module_name, kInterceptorViaLibrary, &s)) in IsStackTraceSuppressed() 92 if (suppression_ctx->Match(function_name, kInterceptorViaFunction, in IsStackTraceSuppressed()
|
| /llvm-project-15.0.7/clang/unittests/Tooling/RecursiveASTVisitorTests/ |
| H A D | Attr.cpp | 20 Match(ME->getMemberDecl()->getNameAsString(), ME->getBeginLoc()); in VisitMemberExpr() 24 Match("Attr", A->getLocation()); in VisitAttr() 28 Match("guarded_by", A->getLocation()); in VisitGuardedByAttr()
|
| H A D | LambdaTemplateParams.cpp | 23 Match(D->getName(), D->getBeginLoc()); in VisitTemplateTypeParmDecl() 29 Match(D->getName(), D->getBeginLoc()); in VisitNonTypeTemplateParmDecl() 35 Match(D->getName(), D->getBeginLoc()); in VisitTemplateTemplateParmDecl()
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_suppressions.cpp | 96 if (suppression_ctx->Match(info.function, stype, sp) || in IsSuppressed() 97 suppression_ctx->Match(info.file, stype, sp) || in IsSuppressed() 98 suppression_ctx->Match(info.module, stype, sp)) { in IsSuppressed() 135 if (suppression_ctx->Match(global.name, stype, &s) || in IsSuppressed() 136 suppression_ctx->Match(global.module, stype, &s)) { in IsSuppressed()
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/ |
| H A D | tsan_suppressions.cpp | 96 if (suppression_ctx->Match(info.function, stype, sp) || in IsSuppressed() 97 suppression_ctx->Match(info.file, stype, sp) || in IsSuppressed() 98 suppression_ctx->Match(info.module, stype, sp)) { in IsSuppressed() 135 if (suppression_ctx->Match(global.name, stype, &s) || in IsSuppressed() 136 suppression_ctx->Match(global.module, stype, &s)) { in IsSuppressed()
|
| /llvm-project-15.0.7/clang/utils/TableGen/ |
| H A D | ClangCommentHTMLTagsEmitter.cpp | 45 StringMatcher::StringPair Match(Spelling, "return true;"); in EmitClangCommentHTMLTagsProperties() local 47 MatchesEndTagOptional.push_back(Match); in EmitClangCommentHTMLTagsProperties() 49 MatchesEndTagForbidden.push_back(Match); in EmitClangCommentHTMLTagsProperties()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch3/mlir/ |
| H A D | ToyCombine.td | 1 //===- ToyCombine.td - Pattern Match Optimizations for Toy -*- tablegen -*-===// 29 // Basic Pattern-Match and Rewrite 37 // Pattern-Match and Rewrite using Native Code Call 51 // Pattern-Match and Rewrite with Constraints
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/ |
| H A D | ToyCombine.td | 1 //===- ToyCombine.td - Pattern Match Optimizations for Toy -*- tablegen -*-===// 29 // Basic Pattern-Match and Rewrite 37 // Pattern-Match and Rewrite using Native Code Call 51 // Pattern-Match and Rewrite with Constraints
|