Home
last modified time | relevance | path

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

12

/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DMisleadingCaptureDefaultByValueCheck.cpp33 for (const LambdaCapture &Capture : Lambda->explicit_captures()) { in findDefaultCaptureEnd()
62 for (const LambdaCapture &Capture : Lambda->implicit_captures()) { in createReplacementText()
86 [](const LambdaCapture &Capture) { return Capture.capturesThis(); }); in check()
H A DRvalueReferenceParamNotMovedCheck.cpp23 [&](const LambdaCapture &Capture) { in AST_MATCHER_P()
H A DMissingStdForwardCheck.cpp74 AST_MATCHER_P(LambdaCapture, hasCaptureKind, LambdaCaptureKind, Kind) { in AST_MATCHER_P() argument
/llvm-project/clang/include/clang/AST/
H A DLambdaCapture.h25 class LambdaCapture {
73 LambdaCapture(SourceLocation Loc, bool Implicit, LambdaCaptureKind Kind,
H A DASTTypeTraits.h67 static ASTNodeKind getFromNode(const LambdaCapture &L);
211 KIND_TO_KIND_ID(LambdaCapture)
558 struct DynTypedNode::BaseConverter<LambdaCapture, void>
559 : public ValueConverter<LambdaCapture> {};
H A DStmtDataCollectors.td198 for (const LambdaCapture &C : S->captures()) {
H A DDeclCXX.h24 #include "clang/AST/LambdaCapture.h"
385 using Capture = LambdaCapture;
1083 void setCaptures(ASTContext &Context, ArrayRef<LambdaCapture> Captures);
1106 using capture_const_iterator = const LambdaCapture *; in captures_begin()
1126 const LambdaCapture *getCapture(unsigned I) const { in conversion_begin()
H A DRecursiveASTVisitor.h31 #include "clang/AST/LambdaCapture.h"
302 bool TraverseLambdaCapture(LambdaExpr *LE, const LambdaCapture *C,
967 const LambdaCapture *C,
2730 const LambdaCapture *C = S->capture_begin() + I;
/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedLambdaCapturesChecker.cpp205 for (const LambdaCapture &C : L->captures()) {
218 for (const LambdaCapture &OtherCapture : L->captures()) {
264 void reportBug(const LambdaCapture &Capture, ValueDecl *CapturedVar,
291 void reportBugOnThisPtr(const LambdaCapture &Capture) const {
/llvm-project/clang-tools-extra/clang-tidy/utils/
H A DAliasing.cpp25 return llvm::any_of(RD->captures(), [Var](const LambdaCapture &C) { in capturesByRef()
/llvm-project/clang/lib/Sema/
H A DCheckExprLifetime.cpp213 const LambdaCapture *Capture;
219 IndirectLocalPathEntry(EntryKind K, Expr *E, const LambdaCapture *Capture) in isVarOnPath()
993 const LambdaCapture &Cap = *CapI++; in checkExprLifetimeImpl()
H A DSemaLambda.cpp2083 SmallVector<LambdaCapture, 4> Captures; in BuildLambdaExpr()
2171 LambdaCapture Capture = [&] { in BuildLambdaExpr()
2183 return LambdaCapture(From.getLocation(), IsImplicit, in BuildLambdaExpr()
2186 return LambdaCapture(From.getLocation(), IsImplicit, LCK_VLAType); in BuildLambdaExpr()
2192 return LambdaCapture(From.getLocation(), IsImplicit, Kind, Var, in BuildLambdaExpr()
H A DSemaTemplateVariadic.cpp319 bool TraverseLambdaCapture(LambdaExpr *Lambda, const LambdaCapture *C, in DiagnoseUnexpandedParameterPacks()
/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h59 #include "clang/AST/LambdaCapture.h"
153 using LambdaCaptureMatcher = internal::Matcher<LambdaCapture>;
762 LambdaCapture)) { in AST_POLYMORPHIC_MATCHER()
4411 internal::Matcher<LambdaCapture>, InnerMatcher) { in AST_MATCHER()
4964 extern const internal::VariadicAllOfMatcher<LambdaCapture> lambdaCapture; in AST_MATCHER_P()
4978 AST_MATCHER_P(LambdaExpr, hasAnyCapture, internal::Matcher<LambdaCapture>,
4980 for (const LambdaCapture &Capture : Node.captures()) {
4990 /// Matches a `LambdaCapture` that refers to the specified `VarDecl`. The
5005 AST_MATCHER_P(LambdaCapture, capturesVar, internal::Matcher<ValueDecl>, in AST_MATCHER()
5013 /// Matches a `LambdaCapture` tha
763 AST_POLYMORPHIC_MATCHER(isImplicit,AST_POLYMORPHIC_SUPPORTED_TYPES (Decl,Attr,LambdaCapture)) AST_POLYMORPHIC_MATCHER() argument
4368 AST_MATCHER_P(LambdaExpr,forEachLambdaCapture,internal::Matcher<LambdaCapture>,InnerMatcher) AST_MATCHER_P() argument
4935 AST_MATCHER_P(LambdaExpr,hasAnyCapture,internal::Matcher<LambdaCapture>,InnerMatcher) AST_MATCHER_P() argument
4962 AST_MATCHER_P(LambdaCapture,capturesVar,internal::Matcher<ValueDecl>,InnerMatcher) AST_MATCHER_P() argument
4984 AST_MATCHER(LambdaCapture,capturesThis) AST_MATCHER() argument
[all...]
/llvm-project/clang/lib/AST/
H A DDeclCXX.cpp25 #include "clang/AST/LambdaCapture.h"
1592 ArrayRef<LambdaCapture> Captures) { in getDependentLambdaCallOperator()
1598 auto *ToCapture = (LambdaCapture *)Context.Allocate(sizeof(LambdaCapture) * in getLambdaCallOperator()
1601 for (const LambdaCapture &C : Captures) { in getLambdaCallOperator()
1605 new (ToCapture) LambdaCapture(C);
1754 for (const LambdaCapture *List : Lambda.Captures) { in CollectVisibleConversions()
1756 for (const LambdaCapture *C = List, *CEnd = C + Lambda.NumCaptures; in CollectVisibleConversions()
H A DExprCXX.cpp25 #include "clang/AST/LambdaCapture.h"
1215 LambdaCapture::LambdaCapture(SourceLocation Loc, bool Implicit, in LambdaCapture()
1245 LambdaCaptureKind LambdaCapture::getCaptureKind() const { in getCaptureKind()
1339 bool LambdaExpr::isInitCapture(const LambdaCapture *C) const { in isInitCapture()
1213 LambdaCapture::LambdaCapture(SourceLocation Loc, bool Implicit, LambdaCapture() function in LambdaCapture
/llvm-project/clang-tools-extra/modularize/
H A DModularize.cpp561 bool TraverseLambdaCapture(LambdaExpr *LE, const LambdaCapture *C, in TraverseTemplateArgumentLoc()
746 bool TraverseLambdaCapture(LambdaExpr *LE, const LambdaCapture *C, in TraverseTemplateArgumentLoc()
/llvm-project/clang/test/CodeGenObjCXX/
H A Dlambda-expressions.mm86 namespace LambdaCapture {
/llvm-project/clang-tools-extra/clang-tidy/modernize/
H A DLoopConvertUtils.h349 bool TraverseLambdaCapture(LambdaExpr *LE, const LambdaCapture *C,
H A DLoopConvertUtils.cpp777 const LambdaCapture *C, in TraverseLambdaCapture()
/llvm-project/clang/include/clang/Sema/
H A DDeclSpec.h2838 struct LambdaCapture { argument
2848 LambdaCapture(LambdaCaptureKind Kind, SourceLocation Loc, in LambdaCapture()
2861 SmallVector<LambdaCapture, 4> Captures; in hasLambdaCapture()
2878 Captures.push_back(LambdaCapture(Kind, Loc, Id, EllipsisLoc, InitKind, Init,
2834 struct LambdaCapture { global() struct
2835 KindLambdaIntroducer::LambdaCapture global() argument
2836 LocLambdaIntroducer::LambdaCapture global() argument
2837 IdLambdaIntroducer::LambdaCapture global() argument
2839 InitKindLambdaIntroducer::LambdaCapture global() argument
2840 InitLambdaIntroducer::LambdaCapture global() argument
2841 InitCaptureTypeLambdaIntroducer::LambdaCapture global() argument
2842 ExplicitRangeLambdaIntroducer::LambdaCapture global() argument
2844 LambdaCaptureLambdaIntroducer::LambdaCapture LambdaCapture() argument
/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DDeadStoresChecker.cpp510 for (const LambdaCapture &C : LE->captures()) { in findLambdaReferenceCaptures()
/llvm-project/clang/lib/Index/
H A DIndexBody.cpp404 bool TraverseLambdaCapture(LambdaExpr *LE, const LambdaCapture *C, in TraverseLambdaCapture()
/llvm-project/clang/unittests/ASTMatchers/
H A DASTMatchersTraversalTest.cpp5067 TEST(LambdaCapture, InvalidLambdaCapture) { in TEST()
5088 matcher, std::make_unique<VerifyIdIsBoundTo<LambdaCapture>>("LC", 2))); in TEST()
5092 matcher, std::make_unique<VerifyIdIsBoundTo<LambdaCapture>>("LC", 2))); in TEST()
5115 matcher, std::make_unique<VerifyIdIsBoundTo<LambdaCapture>>("LC", 1))); in TEST()
5123 matcher, std::make_unique<VerifyIdIsBoundTo<LambdaCapture>>("LC", 2)));
5126 matcher, std::make_unique<VerifyIdIsBoundTo<LambdaCapture>>("LC", 2))); in TEST()
5134 matcher, std::make_unique<VerifyIdIsBoundTo<LambdaCapture>>("LC", 1))); in TEST()
5137 matcher, std::make_unique<VerifyIdIsBoundTo<LambdaCapture>>("LC", 1)));
/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp799 const internal::VariadicAllOfMatcher<LambdaCapture> lambdaCapture;

12