Home
last modified time | relevance | path

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

12

/llvm-project/clang/unittests/AST/
H A DDeclTest.cpp88 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()
155 selectFirst<ConceptDecl>("decl", match(conceptDecl().bind("decl"), Ctx)); in TEST()
169 selectFirst<TagDecl>("Bar", match(enumDecl().bind("Bar"), Ctx)); in TEST()
186 selectFirst<FunctionDecl>("f", match(functionDecl().bind("f"), Ctx)); in TEST()
246 selectFirst<VarDecl>("a", match(varDecl(hasName("a")).bind("a"), Ctx)); in TEST()
247 const auto *f = selectFirst<FunctionDecl>( in TEST()
254 selectFirst<VarDecl>("b", match(varDecl(hasName("b")).bind("b"), Ctx)); in TEST()
255 const auto *g = selectFirst<FunctionDecl>( in TEST()
[all …]
H A DTemplateNameTest.cpp39 const auto *Template = selectFirst<TemplateArgumentLoc>("id", MatchResults); in TEST()
68 const auto *Template = selectFirst<TemplateArgumentLoc>("id", MatchResults); in TEST()
H A DAttrTest.cpp29 using clang::ast_matchers::selectFirst;
106 const auto *StringLit = selectFirst<StringLiteral>( in TEST()
H A DASTImporterFixtures.h269 auto ToImport = selectFirst<NodeType>(DeclToImportID, FoundNodes); in testImport()
409 const Decl *ToImport = selectFirst<Decl>(DeclToImportID, FoundDecl); in testImportSequence()
420 const Decl *ToVerify = selectFirst<Decl>(DeclToVerifyID, FoundDecl); in testImportSequence()
H A DSourceLocationTest.cpp454 auto *VD = selectFirst<VarDecl>("vd", match(varDecl(hasName("var")).bind("vd"), Ctx)); in TEST()
472 auto *VD = selectFirst<VarDecl>("vd", match(varDecl(hasName("var")).bind("vd"), Ctx)); in TEST()
999 auto *VD = selectFirst<VarDecl>("vd", match(varDecl().bind("vd"), Ctx)); in TEST()
H A DTypePrinterTest.cpp195 auto const *CTD = selectFirst<ClassTemplateDecl>( in TEST()
/llvm-project/clang/unittests/Analysis/FlowSensitive/
H A DDataflowEnvironmentTest.cpp90 const ExprWithCleanups *WithCleanups = selectFirst<ExprWithCleanups>( in TEST_F()
95 const ParenExpr *Paren = selectFirst<ParenExpr>( in TEST_F()
135 const QualType *TyPtr = selectFirst<QualType>("target", Results); in TEST_F()
140 const FieldDecl *R = selectFirst<FieldDecl>("field-r", Results); in TEST_F()
144 const auto *Fun = selectFirst<FunctionDecl>("fun", Results); in TEST_F()
216 const auto *Fun = selectFirst<FunctionDecl>("target", Results); in TEST_F()
217 const auto *Var = selectFirst<VarDecl>("global", Results); in TEST_F()
254 const auto *Constructor = selectFirst<FunctionDecl>("target", Results); in TEST_F()
255 const auto *Rec = selectFirst<RecordDecl>("struct", Results); in TEST_F()
256 const auto QTy = *selectFirst<QualTyp in TEST_F()
[all...]
H A DMatchSwitchTest.cpp66 const auto *X = selectFirst<Stmt>(XStr, match(XMatcher.bind(XStr), Ctx)); in TEST()
72 selectFirst<Stmt>(FooStr, match(FooMatcher.bind(FooStr), Ctx)); in TEST()
78 selectFirst<Stmt>(BarStr, match(BarMatcher.bind(BarStr), Ctx)); in TEST()
118 selectFirst<CXXCtorInitializer>(IStr, match(InitI.bind(IStr), Ctx)); in TEST()
124 selectFirst<CXXCtorInitializer>(JStr, match(InitJ.bind(JStr), Ctx)); in TEST()
130 selectFirst<CXXCtorInitializer>(ZStr, match(InitZ.bind(ZStr), Ctx)); in TEST()
141 selectFirst<FunctionDecl>( in TEST()
H A DASTOpsTest.cpp33 using ast_matchers::selectFirst; in TEST()
54 auto *InitList = selectFirst<InitListExpr>( in TEST()
85 auto *InitList = selectFirst<InitListExpr>( in TEST()
132 auto *LambdaCallOp = selectFirst<CXXMethodDecl>(
H A DTransferTest.cpp153 return ast_matchers::selectFirst<BindingDecl>("v", TargetNodes); in TEST()
3049 using ast_matchers::selectFirst; in TEST()
3073 auto *TOE = selectFirst<CXXTemporaryObjectExpr>("toe", MatchResult); in TEST()
3075 auto *Comma = selectFirst<BinaryOperator>("comma", MatchResult); in TEST()
3077 auto *EWC = selectFirst<ExprWithCleanups>("ewc", MatchResult); in TEST()
3079 auto *BTE = selectFirst<CXXBindTemporaryExpr>("bte", MatchResult); in TEST()
3105 using ast_matchers::selectFirst;
3112 auto *DefaultArg = selectFirst<CXXDefaultArgExpr>( in TEST()
3137 using ast_matchers::selectFirst; in TEST()
3146 auto *CtorInit = selectFirst<CXXCtorInitialize in TEST()
[all...]
H A DTestingSupport.cpp220 auto *const Result = selectFirst<ValueDecl>("v", TargetNodes); in findIndirectFieldDecl()
229 const auto *Result = selectFirst<IndirectFieldDecl>("i", TargetNodes); in parseFormulas()
H A DCFGMatchSwitchTest.cpp60 const auto *F = selectFirst<FunctionDecl>( in applySwitchToCode()
H A DTypeErasedDataflowAnalysisTest.cpp64 auto *Func = selectFirst<FunctionDecl>( in runAnalysis()
102 const auto *Node = selectFirst<NodeT>( in matchNode()
723 if (const auto *E = selectFirst<CXXConstructExpr>(
728 } else if (const auto *E = selectFirst<CXXMemberCallExpr>( in TEST_F()
1538 if (const auto *E = selectFirst<CallExpr>("top", Matches)) { in TEST_F()
/llvm-project/clang-tools-extra/clang-tidy/abseil/
H A DTimeSubtractionCheck.cpp36 return selectFirst<const Expr>( in isConstructorAssignment()
51 return selectFirst<const Expr>( in isArgument()
69 return selectFirst<const Expr>( in isReturn()
161 const auto *MaybeCallArg = selectFirst<const CallExpr>( in check()
H A DDurationRewriter.cpp76 if (const auto *MaybeCallArg = selectFirst<const Expr>( in rewriteInverseDurationCall()
94 if (const auto *MaybeCallArg = selectFirst<const Expr>( in rewriteInverseTimeCall()
166 if (selectFirst<const clang::Expr>( in isLiteralZero()
173 if (selectFirst<const clang::Expr>( in isLiteralZero()
189 if (const Expr *MaybeCastArg = selectFirst<const Expr>( in stripFloatCast()
H A DRedundantStrcatCallsCheck.cpp68 if (const auto *SubStrcatCall = selectFirst<const CallExpr>( in processArgument()
/llvm-project/clang-tools-extra/clang-tidy/performance/
H A DUnnecessaryCopyInitialization.cpp169 if (selectFirst<CallExpr>(InitFunctionCallId, Matches) != nullptr) in isInitializingVariableImmutable()
172 if (const auto *OrigVar = selectFirst<VarDecl>(ObjectArgId, Matches)) in isInitializingVariableImmutable()
176 if (const auto *OrigVar = selectFirst<VarDecl>(OldVarDeclId, Matches)) in isInitializingVariableImmutable()
194 return selectFirst<SubstTemplateTypeParmType>("subst", Matches); in differentReplacedTemplateParams()
/llvm-project/clang/unittests/Serialization/
H A DNoCommentsTest.cpp68 auto *foo = selectFirst<FunctionDecl>( in TEST_F()
120 auto *foo = selectFirst<FunctionDecl>( in TEST_F()
H A DVarDeclConstantInitTest.cpp128 const auto *cached = selectFirst<VarDecl>( in TEST_F()
/llvm-project/clang/lib/Analysis/
H A DExprMutationAnalyzer.cpp494 return selectFirst<Stmt>("stmt", Matches); in findCastMutation()
535 if (const auto *CastStmt = selectFirst<Stmt>("stmt", ExplicitCast)) in findRangeLoopMutation()
582 selectFirst<Stmt>("stmt", RefToArrayRefToElements)) in findRangeLoopMutation()
610 selectFirst<Stmt>("stmt", RefToContainerBadIterators)) in findReferenceMutation()
727 const Stmt *MemberCallExpr = selectFirst<Stmt>(
784 return selectFirst<Stmt>("stmt", Matches);
/llvm-project/clang-tools-extra/clang-tidy/utils/
H A DNamespaceAliaser.cpp44 const auto *ExistingAlias = selectFirst<NamedDecl>( in createAlias()
H A DASTUtils.cpp20 return selectFirst<const FunctionDecl>( in getSurroundingFunction()
/llvm-project/clang/unittests/Analysis/
H A DExprMutationAnalyzerTest.cpp55 const auto *const S = selectFirst<Stmt>("stmt", Results); in isMutated()
56 const auto *const E = selectFirst<Expr>("expr", Results); in isMutated()
62 const auto *const S = selectFirst<Stmt>("stmt", Results); in isDeclMutated()
63 const auto *const D = selectFirst<Decl>("decl", Results); in isDeclMutated()
70 const auto *const S = selectFirst<Stmt>("stmt", Results); in mutatedBy()
74 for (const auto *E = selectFirst<Expr>("expr", Results); E != nullptr;) { in mutatedBy()
1616 const auto *const S = selectFirst<Stmt>("stmt", Results);
1617 const auto *const E = selectFirst<Expr>("expr", Results);
1625 const auto *const S = selectFirst<Stmt>("stmt", Results);
1626 const auto *const D = selectFirst<Dec
[all...]
/llvm-project/clang/unittests/StaticAnalyzer/
H A DReusables.h29 const T *Node = selectFirst<T>("root", Matches); in findNode()
/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchFinder.h278 selectFirst(StringRef BoundTo, const SmallVectorImpl<BoundNodes> &Results) { in selectFirst() function

12