Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/unittests/AST/
H A DDeclTest.cpp86 selectFirst<CXXRecordDecl>("d", match(cxxRecordDecl().bind("d"), Ctx)); in TEST()
129 selectFirst<VarDecl>("A", match(varDecl().bind("A"), Ctx)); in TEST()
131 selectFirst<FieldDecl>("B", match(fieldDecl().bind("B"), Ctx)); in TEST()
154 selectFirst<TagDecl>("Bar", match(enumDecl().bind("Bar"), Ctx)); in TEST()
171 selectFirst<FunctionDecl>("f", match(functionDecl().bind("f"), Ctx)); in TEST()
231 selectFirst<VarDecl>("a", match(varDecl(hasName("a")).bind("a"), Ctx)); in TEST()
232 const auto *f = selectFirst<FunctionDecl>( in TEST()
239 selectFirst<VarDecl>("b", match(varDecl(hasName("b")).bind("b"), Ctx)); in TEST()
240 const auto *g = selectFirst<FunctionDecl>( in TEST()
250 f = selectFirst<FunctionDecl>( in TEST()
[all …]
H A DAttrTest.cpp29 using clang::ast_matchers::selectFirst;
106 const auto *StringLit = selectFirst<StringLiteral>( in TEST()
H A DASTImporterFixtures.h267 auto ToImport = selectFirst<NodeType>(DeclToImportID, FoundNodes); in testImport()
407 const Decl *ToImport = selectFirst<Decl>(DeclToImportID, FoundDecl); in testImportSequence()
418 const Decl *ToVerify = selectFirst<Decl>(DeclToVerifyID, FoundDecl); in testImportSequence()
H A DTemplateNameTest.cpp43 const auto *Template = selectFirst<TemplateArgumentLoc>("id", MatchResults); in TEST()
H A DSourceLocationTest.cpp954 auto *VD = selectFirst<VarDecl>("vd", match(varDecl().bind("vd"), Ctx)); in TEST()
H A DASTImporterTest.cpp1261 selectFirst<ChooseExpr>("choose", FromResults); in TEST_P()
1264 const ChooseExpr *ToChooseExpr = selectFirst<ChooseExpr>("choose", ToResults); in TEST_P()
1289 selectFirst<GenericSelectionExpr>("expr", FromResults); in TEST_P()
1293 selectFirst<GenericSelectionExpr>("expr", ToResults); in TEST_P()
4813 const auto *FromSubstPack = selectFirst<SubstTemplateTypeParmPackType>( in TEST_P()
4830 const auto *ToSubstPack = selectFirst<SubstTemplateTypeParmPackType>( in TEST_P()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DTimeSubtractionCheck.cpp37 return selectFirst<const Expr>( in isConstructorAssignment()
52 return selectFirst<const Expr>( in isArgument()
70 return selectFirst<const Expr>( in isReturn()
162 const auto *MaybeCallArg = selectFirst<const CallExpr>( in check()
H A DDurationRewriter.cpp75 if (const auto *MaybeCallArg = selectFirst<const Expr>( in rewriteInverseDurationCall()
93 if (const auto *MaybeCallArg = selectFirst<const Expr>( in rewriteInverseTimeCall()
165 if (selectFirst<const clang::Expr>( in isLiteralZero()
172 if (selectFirst<const clang::Expr>( in isLiteralZero()
188 if (const Expr *MaybeCastArg = selectFirst<const Expr>( in stripFloatCast()
H A DRedundantStrcatCallsCheck.cpp69 if (const auto *SubStrcatCall = selectFirst<const CallExpr>( in processArgument()
/llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/
H A DDataflowEnvironmentTest.cpp72 const QualType *Ty = selectFirst<QualType>("target", Results); in TEST_F()
73 const FieldDecl *R = selectFirst<FieldDecl>("field-r", Results); in TEST_F()
H A DTestingSupport.cpp129 auto *const Result = selectFirst<ValueDecl>("v", TargetNodes); in findValueDecl()
H A DTypeErasedDataflowAnalysisTest.cpp61 auto *Func = selectFirst<FunctionDecl>( in runAnalysis()
312 if (const auto *E = selectFirst<CXXConstructExpr>( in transfer()
318 } else if (const auto *E = selectFirst<CXXMemberCallExpr>( in transfer()
464 if (const auto *E = selectFirst<CXXConstructExpr>( in transfer()
470 } else if (const auto *E = selectFirst<CXXOperatorCallExpr>( in transfer()
H A DMatchSwitchTest.cpp213 selectFirst<FunctionDecl>( in TEST()
H A DTestingSupport.h97 const FunctionDecl *F = ast_matchers::selectFirst<FunctionDecl>(
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DUnnecessaryCopyInitialization.cpp159 if (selectFirst<CallExpr>(InitFunctionCallId, Matches) != nullptr) in isInitializingVariableImmutable()
162 if (const auto *OrigVar = selectFirst<VarDecl>(ObjectArgId, Matches)) in isInitializingVariableImmutable()
166 if (const auto *OrigVar = selectFirst<VarDecl>(OldVarDeclId, Matches)) in isInitializingVariableImmutable()
184 return selectFirst<SubstTemplateTypeParmType>("subst", Matches); in getSubstitutedType()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DExprMutationAnalyzer.cpp204 return selectFirst<Stmt>( in isUnevaluated()
383 return selectFirst<Stmt>("stmt", Matches); in findDirectMutation()
423 if (const auto *CastStmt = selectFirst<Stmt>("stmt", ExplicitCast)) in findCastMutation()
470 selectFirst<Stmt>("stmt", RefToArrayRefToElements)) in findRangeLoopMutation()
498 selectFirst<Stmt>("stmt", RefToContainerBadIterators)) in findRangeLoopMutation()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DASTUtils.cpp22 return selectFirst<const FunctionDecl>( in getSurroundingFunction()
H A DNamespaceAliaser.cpp45 const auto *ExistingAlias = selectFirst<NamedDecl>( in createAlias()
/llvm-project-15.0.7/clang/unittests/StaticAnalyzer/
H A DReusables.h29 const T *Node = selectFirst<T>("root", Matches); in findNode()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchFinder.h277 selectFirst(StringRef BoundTo, const SmallVectorImpl<BoundNodes> &Results) { in selectFirst() function
/llvm-project-15.0.7/clang-tools-extra/clang-reorder-fields/
H A DReorderFieldsAction.cpp50 return selectFirst<RecordDecl>("recordDecl", Results); in findDefinition()
/llvm-project-15.0.7/clang/unittests/Analysis/
H A DExprMutationAnalyzerTest.cpp54 const auto *const S = selectFirst<Stmt>("stmt", Results); in isMutated()
55 const auto *const E = selectFirst<Expr>("expr", Results); in isMutated()
62 const auto *const S = selectFirst<Stmt>("stmt", Results); in mutatedBy()
66 for (const auto *E = selectFirst<Expr>("expr", Results); E != nullptr;) { in mutatedBy()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersInternalTest.cpp275 auto PT = selectFirst<PointerType>( in TEST()
H A DASTMatchersNodeTest.cpp1989 return selectFirst<T>( in verify()
1998 return selectFirst<T>( in verify()
2008 return selectFirst<T>( in verify()
H A DASTMatchersTraversalTest.cpp5598 return selectFirst<T>(InnerId, match(InnerMatcher, *Node, *Context)) != in run()