Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/clang/include/clang/AST/
H A DLambdaCapture.h25 class LambdaCapture {
73 LambdaCapture(SourceLocation Loc, bool Implicit, LambdaCaptureKind Kind,
H A DASTTypeTraits.h68 static ASTNodeKind getFromNode(const LambdaCapture &L);
204 KIND_TO_KIND_ID(LambdaCapture)
550 struct DynTypedNode::BaseConverter<LambdaCapture, void>
551 : public ValueConverter<LambdaCapture> {};
H A DStmtDataCollectors.td199 for (const LambdaCapture &C : S->captures()) {
H A DDeclCXX.h375 using Capture = LambdaCapture;
1046 void setCaptures(ASTContext &Context, ArrayRef<LambdaCapture> Captures);
1063 using capture_const_iterator = const LambdaCapture *;
H A DRecursiveASTVisitor.h313 bool TraverseLambdaCapture(LambdaExpr *LE, const LambdaCapture *C,
962 const LambdaCapture *C,
2655 const LambdaCapture *C = S->capture_begin() + I;
H A DExprCXX.h61 class LambdaCapture; variable
1927 bool isInitCapture(const LambdaCapture *Capture) const;
1931 using capture_iterator = const LambdaCapture *;
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedLambdaCapturesChecker.cpp58 for (const LambdaCapture &C : L->captures()) { in visitLambdaExpr()
71 void reportBug(const LambdaCapture &Capture, VarDecl *CapturedVar, in reportBug()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DAliasing.cpp27 return llvm::any_of(RD->captures(), [Var](const LambdaCapture &C) { in capturesByRef()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaLambda.cpp542 ArrayRef<LambdaIntroducer::LambdaCapture> Captures, in addLambdaParameters()
1751 SmallVector<LambdaCapture, 4> Captures; in BuildLambdaExpr()
1839 LambdaCapture Capture = [&] { in BuildLambdaExpr()
1851 return LambdaCapture(From.getLocation(), IsImplicit, in BuildLambdaExpr()
1854 return LambdaCapture(From.getLocation(), IsImplicit, LCK_VLAType); in BuildLambdaExpr()
1860 return LambdaCapture(From.getLocation(), IsImplicit, Kind, Var, in BuildLambdaExpr()
H A DSemaTemplateVariadic.cpp263 bool TraverseLambdaCapture(LambdaExpr *Lambda, const LambdaCapture *C, in TraverseLambdaCapture()
H A DSemaInit.cpp6857 const LambdaCapture *Capture;
6863 IndirectLocalPathEntry(EntryKind K, Expr *E, const LambdaCapture *Capture) in IndirectLocalPathEntry()
7426 const LambdaCapture &Cap = *CapI++; in visitLocalsRetainedByInitializer()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h151 using LambdaCaptureMatcher = internal::Matcher<LambdaCapture>;
761 LambdaCapture)) { in AST_POLYMORPHIC_MATCHER() argument
4271 internal::Matcher<LambdaCapture>, InnerMatcher) { in AST_MATCHER_P() argument
4684 extern const internal::VariadicAllOfMatcher<LambdaCapture> lambdaCapture;
4698 AST_MATCHER_P(LambdaExpr, hasAnyCapture, internal::Matcher<LambdaCapture>, in AST_MATCHER_P() argument
4700 for (const LambdaCapture &Capture : Node.captures()) { in AST_MATCHER_P()
4725 AST_MATCHER_P(LambdaCapture, capturesVar, internal::Matcher<VarDecl>, in AST_MATCHER_P() argument
4745 AST_MATCHER(LambdaCapture, capturesThis) { return Node.capturesThis(); } in AST_MATCHER() argument
/llvm-project-15.0.7/clang-tools-extra/modularize/
H A DModularize.cpp569 bool TraverseLambdaCapture(LambdaExpr *LE, const LambdaCapture *C, in TraverseLambdaCapture()
758 bool TraverseLambdaCapture(LambdaExpr *LE, const LambdaCapture *C, in TraverseLambdaCapture()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DLoopConvertUtils.h351 bool TraverseLambdaCapture(LambdaExpr *LE, const LambdaCapture *C,
H A DLoopConvertUtils.cpp785 const LambdaCapture *C, in TraverseLambdaCapture()
/llvm-project-15.0.7/clang/test/CodeGenObjCXX/
H A Dlambda-expressions.mm87 namespace LambdaCapture {
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DDeclSpec.h2712 struct LambdaCapture { struct
2722 LambdaCapture(LambdaCaptureKind Kind, SourceLocation Loc, in LambdaCapture() argument
2735 SmallVector<LambdaCapture, 4> Captures;
2749 Captures.push_back(LambdaCapture(Kind, Loc, Id, EllipsisLoc, InitKind, Init, in addCapture()
/llvm-project-15.0.7/clang/lib/AST/
H A DExprCXX.cpp1089 LambdaCapture::LambdaCapture(SourceLocation Loc, bool Implicit, in LambdaCapture() function in LambdaCapture
1119 LambdaCaptureKind LambdaCapture::getCaptureKind() const { in getCaptureKind()
1213 bool LambdaExpr::isInitCapture(const LambdaCapture *C) const { in isInitCapture()
H A DDeclCXX.cpp1447 ArrayRef<LambdaCapture> Captures) { in setCaptures()
1453 Data.Captures = (LambdaCapture *)Context.Allocate(sizeof(LambdaCapture) * in setCaptures()
1455 LambdaCapture *ToCapture = Data.Captures; in setCaptures()
1580 for (const LambdaCapture *C = Lambda.Captures, *CEnd = C + Lambda.NumCaptures; in getCaptureFields()
H A DASTImporter.cpp1008 Expected<LambdaCapture> ASTNodeImporter::import(const LambdaCapture &From) { in import()
1026 return LambdaCapture( in import()
2027 SmallVector<LambdaCapture, 8> ToCaptures; in ImportDefinition()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DDeadStoresChecker.cpp511 for (const LambdaCapture &C : LE->captures()) { in findLambdaReferenceCaptures()
/llvm-project-15.0.7/clang/lib/Index/
H A DIndexBody.cpp390 bool TraverseLambdaCapture(LambdaExpr *LE, const LambdaCapture *C, in TraverseLambdaCapture()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersTraversalTest.cpp4805 matcher, std::make_unique<VerifyIdIsBoundTo<LambdaCapture>>("LC", 2))); in TEST()
4809 matcher, std::make_unique<VerifyIdIsBoundTo<LambdaCapture>>("LC", 2))); in TEST()
4832 matcher, std::make_unique<VerifyIdIsBoundTo<LambdaCapture>>("LC", 1))); in TEST()
4840 matcher, std::make_unique<VerifyIdIsBoundTo<LambdaCapture>>("LC", 2))); in TEST()
4843 matcher, std::make_unique<VerifyIdIsBoundTo<LambdaCapture>>("LC", 2))); in TEST()
4851 matcher, std::make_unique<VerifyIdIsBoundTo<LambdaCapture>>("LC", 1))); in TEST()
4854 matcher, std::make_unique<VerifyIdIsBoundTo<LambdaCapture>>("LC", 1))); in TEST()
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp771 const internal::VariadicAllOfMatcher<LambdaCapture> lambdaCapture;
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGOpenMPRuntimeGPU.cpp399 for (const LambdaCapture &C : E->captures()) { in VisitLambdaExpr()
3822 for (const LambdaCapture &LC : RD->captures()) { in adjustTargetSpecificDataForLambdas()

12