/llvm-project/clang/unittests/AST/ |
H A D | DeclTest.cpp | 88 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 D | TemplateNameTest.cpp | 39 const auto *Template = selectFirst<TemplateArgumentLoc>("id", MatchResults); in TEST() 68 const auto *Template = selectFirst<TemplateArgumentLoc>("id", MatchResults); in TEST()
|
H A D | AttrTest.cpp | 29 using clang::ast_matchers::selectFirst; 106 const auto *StringLit = selectFirst<StringLiteral>( in TEST()
|
H A D | ASTImporterFixtures.h | 269 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 D | SourceLocationTest.cpp | 454 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 D | TypePrinterTest.cpp | 195 auto const *CTD = selectFirst<ClassTemplateDecl>( in TEST()
|
/llvm-project/clang/unittests/Analysis/FlowSensitive/ |
H A D | DataflowEnvironmentTest.cpp | 90 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 D | MatchSwitchTest.cpp | 66 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 D | ASTOpsTest.cpp | 33 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 D | TransferTest.cpp | 153 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 D | TestingSupport.cpp | 220 auto *const Result = selectFirst<ValueDecl>("v", TargetNodes); in findIndirectFieldDecl() 229 const auto *Result = selectFirst<IndirectFieldDecl>("i", TargetNodes); in parseFormulas()
|
H A D | CFGMatchSwitchTest.cpp | 60 const auto *F = selectFirst<FunctionDecl>( in applySwitchToCode()
|
H A D | TypeErasedDataflowAnalysisTest.cpp | 64 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 D | TimeSubtractionCheck.cpp | 36 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 D | DurationRewriter.cpp | 76 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 D | RedundantStrcatCallsCheck.cpp | 68 if (const auto *SubStrcatCall = selectFirst<const CallExpr>( in processArgument()
|
/llvm-project/clang-tools-extra/clang-tidy/performance/ |
H A D | UnnecessaryCopyInitialization.cpp | 169 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 D | NoCommentsTest.cpp | 68 auto *foo = selectFirst<FunctionDecl>( in TEST_F() 120 auto *foo = selectFirst<FunctionDecl>( in TEST_F()
|
H A D | VarDeclConstantInitTest.cpp | 128 const auto *cached = selectFirst<VarDecl>( in TEST_F()
|
/llvm-project/clang/lib/Analysis/ |
H A D | ExprMutationAnalyzer.cpp | 494 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 D | NamespaceAliaser.cpp | 44 const auto *ExistingAlias = selectFirst<NamedDecl>( in createAlias()
|
H A D | ASTUtils.cpp | 20 return selectFirst<const FunctionDecl>( in getSurroundingFunction()
|
/llvm-project/clang/unittests/Analysis/ |
H A D | ExprMutationAnalyzerTest.cpp | 55 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 D | Reusables.h | 29 const T *Node = selectFirst<T>("root", Matches); in findNode()
|
/llvm-project/clang/include/clang/ASTMatchers/ |
H A D | ASTMatchFinder.h | 278 selectFirst(StringRef BoundTo, const SmallVectorImpl<BoundNodes> &Results) { in selectFirst() function
|