Home
last modified time | relevance | path

Searched refs:Matched (Results 1 – 25 of 39) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DProBoundsConstantArrayIndexCheck.cpp61 const auto *Matched = Result.Nodes.getNodeAs<Expr>("expr"); in check() local
71 if (const auto *ArraySubscriptE = dyn_cast<ArraySubscriptExpr>(Matched)) in check()
75 cast<CXXOperatorCallExpr>(Matched)->getArg(0)->getSourceRange(); in check()
78 auto Diag = diag(Matched->getExprLoc(), in check()
87 << FixItHint::CreateReplacement(Matched->getEndLoc(), ")") in check()
101 diag(Matched->getExprLoc(), "std::array<> index %0 is negative") in check()
118 diag(Matched->getExprLoc(), in check()
H A DProTypeVarargCheck.cpp177 if (const auto *Matched = Result.Nodes.getNodeAs<CallExpr>("callvararg")) { in check() local
178 if (hasSingleVariadicArgumentWithValue(Matched, 0)) in check()
180 diag(Matched->getExprLoc(), "do not call c-style vararg functions"); in check()
183 if (const auto *Matched = Result.Nodes.getNodeAs<Expr>("va_use")) { in check() local
184 diag(Matched->getExprLoc(), VaArgWarningMessage); in check()
187 if (const auto *Matched = Result.Nodes.getNodeAs<VarDecl>("va_list")) { in check() local
188 auto SR = Matched->getSourceRange(); in check()
H A DProTypeUnionAccessCheck.cpp27 const auto *Matched = Result.Nodes.getNodeAs<MemberExpr>("expr"); in check() local
28 diag(Matched->getMemberLoc(), in check()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DStringCompareCheck.cpp51 if (const auto *Matched = Result.Nodes.getNodeAs<Stmt>("match1")) { in check() local
52 diag(Matched->getBeginLoc(), CompareMessage); in check()
56 if (const auto *Matched = Result.Nodes.getNodeAs<Stmt>("match2")) { in check() local
64 auto Diag = diag(Matched->getBeginLoc(), CompareMessage); in check()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DUnusedReturnValueCheck.cpp169 if (const auto *Matched = Result.Nodes.getNodeAs<CallExpr>("match")) { in check() local
170 diag(Matched->getBeginLoc(), in check()
172 << Matched->getSourceRange(); in check()
173 diag(Matched->getBeginLoc(), in check()
/llvm-project-15.0.7/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsELFObjectWriter.cpp40 bool Matched = false; ///< Is this relocation part of a match. member
46 Out << ", Matched=" << Matched; in print()
116 unsigned Matched = Predicate(*I); in find_best() local
117 if (Matched != FindBest_NoMatch) { in find_best()
125 if (Matched == FindBest_PerfectMatch) { in find_best()
182 if (!X.Matched && in isMatchingReloc()
201 return PreviousBest.Matched && !Candidate.Matched; in compareMatchingRelocs()
493 InsertionPoint->Matched = true; in sortRelocs()
494 Sorted.insert(InsertionPoint, R)->Matched = true; in sortRelocs()
/llvm-project-15.0.7/llvm/test/CodeGen/AArch64/GlobalISel/
H A Dpostlegalizer-lowering-shuf-to-ins.mir18 ; Matched M[0] = 0 -> G_INSERT_VECTOR_ELT should use %left.
48 ; Matched M[1] = 1 -> G_INSERT_VECTOR_ELT should use %left.
78 ; Matched M[0] = 1 -> G_INSERT_VECTOR_ELT should use %left.
110 ; Matched M[1] = 1 + 2 -> G_INSERT_VECTOR_ELT should use %right.
141 ; Matched M[0] = 0 + 2 -> G_INSERT_VECTOR_ELT should use %right.
172 ; Matched M[0] = 0 + 2, M[1] = 1 + 2 -> too many matches.
196 ; Matched the correct amount on the left and right.
199 ; Matched M[1] = 1 -> G_INSERT_VECTOR_ELT should use %left.
230 ; Matched M[1] = -1 -> G_INSERT_VECTOR_ELT should use %left.
261 ; Matched M[1] = -1 -> G_INSERT_VECTOR_ELT should use %left.
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DIncludeFixer.cpp287 auto &Matched = *Syms.begin(); in fixIncompleteType() local
288 if (!Matched.IncludeHeaders.empty() && Matched.Definition && in fixIncompleteType()
289 Matched.CanonicalDeclaration.FileURI == Matched.Definition.FileURI) in fixIncompleteType()
609 auto &Matched = *Syms.begin(); in lookupCached() local
610 if (!Matched.IncludeHeaders.empty() && Matched.Definition && in lookupCached()
611 Matched.CanonicalDeclaration.FileURI == Matched.Definition.FileURI) in lookupCached()
H A DConfigYAML.cpp310 bool Matched = false; in parse() local
313 Matched = true; in parse()
318 if (!Matched) { in parse()
/llvm-project-15.0.7/clang-tools-extra/unittests/clang-tidy/
H A DModernizeModuleTest.cpp77 bool Matched; member
82 << ", Matched: " << std::boolalpha << Value.Matched in operator <<()
252 EXPECT_TRUE(matchText(Param.Text, Param.AllowComma) == Param.Matched); in TEST_P()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DOverflowInstAnalysis.cpp54 bool Matched = in isCheckForZeroAndMulWithOverflow() local
60 if (!Matched) in isCheckForZeroAndMulWithOverflow()
/llvm-project-15.0.7/clang/lib/Tooling/Inclusions/
H A DHeaderIncludes.cpp62 bool Matched = Tok.is(tok::hash) && !Lex.LexFromRawLexer(Tok) && in checkAndConsumeDirectiveWithName() local
67 if (Matched) in checkAndConsumeDirectiveWithName()
69 return Matched; in checkAndConsumeDirectiveWithName()
126 auto Matched = [&]() { in checkAndConsumeInclusiveDirective() local
135 return Matched(); in checkAndConsumeInclusiveDirective()
140 return Matched(); in checkAndConsumeInclusiveDirective()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h4279 Matched = true; in AST_MATCHER_P()
4284 return Matched; in AST_MATCHER_P()
4849 return Matched; in AST_POLYMORPHIC_MATCHER_P2()
4949 return Matched; in AST_POLYMORPHIC_MATCHER_P2()
5081 Matched = true; in AST_POLYMORPHIC_MATCHER_P()
5086 return Matched; in AST_POLYMORPHIC_MATCHER_P()
6020 Matched = true; in AST_MATCHER_P()
6025 return Matched; in AST_MATCHER_P()
7594 Matched = true; in AST_MATCHER_P()
7599 return Matched; in AST_MATCHER_P()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DQualityTests.cpp189 bool Matched = false; in TEST() local
191 Matched = true; in TEST()
196 EXPECT_TRUE(Matched); in TEST()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DToolingTest.cpp429 VerifyEndCallback() : BeginCalled(0), EndCalled(0), Matched(false) {} in VerifyEndCallback()
436 return std::make_unique<FindTopLevelDeclConsumer>(&Matched); in newASTConsumer()
440 bool Matched; member
460 EXPECT_TRUE(EndCallback.Matched); in TEST()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaTemplateInstantiate.cpp3115 SmallVector<MatchResult, 4> Matched; in getPatternForClassTemplateSpecialization() local
3131 Matched.push_back(PartialSpecMatchResult()); in getPatternForClassTemplateSpecialization()
3132 Matched.back().Partial = Partial; in getPatternForClassTemplateSpecialization()
3133 Matched.back().Args = Info.take(); in getPatternForClassTemplateSpecialization()
3141 if (Matched.size() >= 1) { in getPatternForClassTemplateSpecialization()
3142 SmallVectorImpl<MatchResult>::iterator Best = Matched.begin(); in getPatternForClassTemplateSpecialization()
3143 if (Matched.size() == 1) { in getPatternForClassTemplateSpecialization()
3156 PEnd = Matched.end(); in getPatternForClassTemplateSpecialization()
3167 for (SmallVectorImpl<MatchResult>::iterator P = Matched.begin(), in getPatternForClassTemplateSpecialization()
3168 PEnd = Matched.end(); in getPatternForClassTemplateSpecialization()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/
H A DRename.cpp906 [&](const std::vector<size_t> &Matched) { in getMappedRanges() argument
908 renameRangeAdjustmentCost(Indexed, Lexed, Matched); in getMappedRanges()
911 Best = std::move(Matched); in getMappedRanges()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DMacroToEnumCheck.cpp325 bool Matched = Matcher.match(); in isInitializer() local
331 return Matched; in isInitializer()
/llvm-project-15.0.7/llvm/lib/Option/
H A DOptTable.cpp186 bool Matched = IgnoreCase ? Rest.startswith_insensitive(I->Name) in matchOption() local
188 if (Matched) in matchOption()
/llvm-project-15.0.7/bolt/lib/Rewrite/
H A DBoltDiff.cpp499 bool Matched = FuncMap.find(&Function) != FuncMap.end(); in computeAggregatedLTOScore() local
503 if (!Matched) in computeAggregatedLTOScore()
/llvm-project-15.0.7/clang-tools-extra/clang-change-namespace/
H A DChangeNamespace.cpp846 bool Matched = false; in replaceQualifiedSymbolInDeclContext() local
848 if (Matched) in replaceQualifiedSymbolInDeclContext()
856 Matched = true; in replaceQualifiedSymbolInDeclContext()
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp403 bool Matched = false; in eachOfVariadicOperator() local
407 Matched = true; in eachOfVariadicOperator()
412 return Matched; in eachOfVariadicOperator()
H A DASTMatchFinder.cpp1147 auto Finish = [&](bool Matched) { in matchesAnyAncestorOf() argument
1150 CachedResult.ResultOfMatch = Matched; in matchesAnyAncestorOf()
1153 return Matched; in matchesAnyAncestorOf()
/llvm-project-15.0.7/llvm/utils/TableGen/
H A DCodeGenSchedule.cpp1256 RecVec Matched = Rec->getValueAsListOfDefs("MatchedItinClasses"); in inferFromItinClass() local
1257 if (!llvm::is_contained(Matched, ItinClassDef)) in inferFromItinClass()
2045 RecVec Matched = (*II)->getValueAsListOfDefs("MatchedItinClasses"); in collectItinProcResources() local
2046 if (!llvm::is_contained(Matched, ItinClassDef)) in collectItinProcResources()
/llvm-project-15.0.7/clang/lib/Tooling/ASTDiff/
H A DASTDiff.cpp844 bool Matched = M.hasSrc(Id1); in matchBottomUp() local
848 if (Matched || !MatchedChildren) in matchBottomUp()

12