| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | DeclTest.cpp | 86 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 D | AttrTest.cpp | 29 using clang::ast_matchers::selectFirst; 106 const auto *StringLit = selectFirst<StringLiteral>( in TEST()
|
| H A D | ASTImporterFixtures.h | 267 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 D | TemplateNameTest.cpp | 43 const auto *Template = selectFirst<TemplateArgumentLoc>("id", MatchResults); in TEST()
|
| H A D | SourceLocationTest.cpp | 954 auto *VD = selectFirst<VarDecl>("vd", match(varDecl().bind("vd"), Ctx)); in TEST()
|
| H A D | ASTImporterTest.cpp | 1261 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 D | TimeSubtractionCheck.cpp | 37 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 D | DurationRewriter.cpp | 75 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 D | RedundantStrcatCallsCheck.cpp | 69 if (const auto *SubStrcatCall = selectFirst<const CallExpr>( in processArgument()
|
| /llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/ |
| H A D | DataflowEnvironmentTest.cpp | 72 const QualType *Ty = selectFirst<QualType>("target", Results); in TEST_F() 73 const FieldDecl *R = selectFirst<FieldDecl>("field-r", Results); in TEST_F()
|
| H A D | TestingSupport.cpp | 129 auto *const Result = selectFirst<ValueDecl>("v", TargetNodes); in findValueDecl()
|
| H A D | TypeErasedDataflowAnalysisTest.cpp | 61 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 D | MatchSwitchTest.cpp | 213 selectFirst<FunctionDecl>( in TEST()
|
| H A D | TestingSupport.h | 97 const FunctionDecl *F = ast_matchers::selectFirst<FunctionDecl>(
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | UnnecessaryCopyInitialization.cpp | 159 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 D | ExprMutationAnalyzer.cpp | 204 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 D | ASTUtils.cpp | 22 return selectFirst<const FunctionDecl>( in getSurroundingFunction()
|
| H A D | NamespaceAliaser.cpp | 45 const auto *ExistingAlias = selectFirst<NamedDecl>( in createAlias()
|
| /llvm-project-15.0.7/clang/unittests/StaticAnalyzer/ |
| H A D | Reusables.h | 29 const T *Node = selectFirst<T>("root", Matches); in findNode()
|
| /llvm-project-15.0.7/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchFinder.h | 277 selectFirst(StringRef BoundTo, const SmallVectorImpl<BoundNodes> &Results) { in selectFirst() function
|
| /llvm-project-15.0.7/clang-tools-extra/clang-reorder-fields/ |
| H A D | ReorderFieldsAction.cpp | 50 return selectFirst<RecordDecl>("recordDecl", Results); in findDefinition()
|
| /llvm-project-15.0.7/clang/unittests/Analysis/ |
| H A D | ExprMutationAnalyzerTest.cpp | 54 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 D | ASTMatchersInternalTest.cpp | 275 auto PT = selectFirst<PointerType>( in TEST()
|
| H A D | ASTMatchersNodeTest.cpp | 1989 return selectFirst<T>( in verify() 1998 return selectFirst<T>( in verify() 2008 return selectFirst<T>( in verify()
|
| H A D | ASTMatchersTraversalTest.cpp | 5598 return selectFirst<T>(InnerId, match(InnerMatcher, *Node, *Context)) != in run()
|