Home
last modified time | relevance | path

Searched refs:capturesVariable (Results 1 – 25 of 28) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DLambdaCapture.h88 bool capturesVariable() const { in capturesVariable() function
105 assert(capturesVariable() && "No variable available for capture"); in getCapturedVar()
H A DStmtDataCollectors.td202 if (C.capturesVariable())
H A DStmt.h3806 bool capturesVariable() const { return getCaptureKind() == VCK_ByRef; }
3892 bool capturesVariable(const VarDecl *Var) const;
H A DDecl.h4628 bool capturesVariable(const VarDecl *var) const;
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedLambdaCapturesChecker.cpp60 if (C.capturesVariable()) { in visitLambdaExpr()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DCheckExprLifetime.cpp810 if (Cap.capturesVariable()) in visitLocalsRetainedByInitializer()
818 if (Cap.capturesVariable()) in visitLocalsRetainedByInitializer()
963 if (!Path[I].Capture->capturesVariable()) in nextPathEntryRange()
1268 if (!Elem.Capture->capturesVariable()) in checkExprLifetimeImpl()
H A DSemaObjC.cpp894 if (block->getBlockDecl()->capturesVariable(Variable)) in VisitBlockExpr()
954 if (!block || !block->getBlockDecl()->capturesVariable(owner.Variable)) in findCapturingExpr()
H A DSemaConcept.cpp724 if (!CapturePattern.capturesVariable()) { in addInstantiatedCapturesToScope()
H A DSemaOpenMP.cpp3791 if (!CS || (isa<OMPCapturedExprDecl>(VD) && !CS->capturesVariable(VD) && in VisitDeclRefExpr()
3806 if (VD->hasLocalStorage() && CS && !CS->capturesVariable(VD) && in VisitDeclRefExpr()
3822 if (VD->hasGlobalStorage() && CS && !CS->capturesVariable(VD) && in VisitDeclRefExpr()
4176 if (!Cap.capturesVariable() && !Cap.capturesVariableByCopy()) in visitSubCaptures()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenMPRuntimeGPU.cpp266 if (C.capturesVariable() && !C.capturesVariableByCopy()) { in VisitOpenMPCapturedStmt()
359 if (C.capturesVariable() && !C.capturesVariableByCopy()) { in VisitCapturedStmt()
371 if (C.capturesVariable()) { in VisitLambdaExpr()
2156 if (!C.capturesVariable()) in adjustTargetSpecificDataForLambdas()
2187 if (!CS->capturesVariable(cast<VarDecl>(VD))) in adjustTargetSpecificDataForLambdas()
H A DCGStmtOpenMP.cpp76 cast<BlockDecl>(CGF.CurCodeDecl)->capturesVariable(VD)); in isCapturedVar()
94 if (C.capturesVariable() || C.capturesVariableByCopy()) { in OMPLexicalScope()
236 cast<BlockDecl>(CGF.CurCodeDecl)->capturesVariable(VD)); in isCapturedVar()
289 if (C.capturesVariable() || C.capturesVariableByCopy()) { in OMPSimdLexicalScope()
393 assert(CurCap->capturesVariable() && "Expected capture by reference."); in GenerateOpenMPCapturedVars()
501 if (I->capturesVariable() || I->capturesVariableByCopy()) { in emitOutlinedFunctionPrologue()
599 } else if (I->capturesVariable()) { in emitOutlinedFunctionPrologue()
H A DCGOpenMPRuntime.cpp367 if (!C.capturesVariable() && !C.capturesVariableByCopy()) in CGOpenMPInnerExprInfo()
7695 assert(Cap.capturesVariable() && "Expected capture by reference only!"); in getMapModifiersForPrivateClauses()
8403 if (!LC.capturesVariable()) in generateInfoForLambdaCaptures()
8788 assert(CI.capturesVariable() && "Expected captured reference."); in generateDefaultMapInfo()
9546 if (CI->capturesVariable()) in emitTargetCallKernelLaunch()
11499 if (Cap.capturesVariable() || Cap.capturesVariableByCopy()) in tryToDisableInnerAnalysis()
11895 if (!CS->capturesVariable(VD) || IgnoredDecls.contains(VD)) in checkAndEmitSharedLastprivateConditional()
H A DCodeGenFunction.h475 else if (I->capturesVariable())
H A DCGDebugInfo.cpp1770 if (C.capturesVariable()) { in CollectRecordLambdaFields()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmt.cpp1306 assert((capturesVariable() || capturesVariableByCopy()) && in getCapturedVar()
1431 bool CapturedStmt::capturesVariable(const VarDecl *Var) const { in capturesVariable() function in CapturedStmt
1433 if (!I.capturesVariable() && !I.capturesVariableByCopy()) in capturesVariable()
H A DStmtProfile.cpp2085 if (Capture.capturesVariable()) in VisitLambdaExpr()
H A DExprCXX.cpp1341 return C->capturesVariable() && C->getCapturedVar()->isInitCapture() && in isInitCapture()
H A DDeclCXX.cpp1693 else if (C->capturesVariable()) in getCaptureFields()
H A DDecl.cpp5245 bool BlockDecl::capturesVariable(const VarDecl *variable) const { in capturesVariable() function in BlockDecl
/freebsd/contrib/llvm-project/clang/lib/Index/
H A DIndexBody.cpp412 if (C->capturesVariable() && IndexCtx.shouldIndexFunctionLocalSymbols()) in TraverseLambdaCapture()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DAnalysisDeclContext.cpp169 if (!LC.capturesVariable()) in getSelfDecl()
H A DCalledOnceCheck.cpp1114 return Block->capturesVariable(Parameter); in isCaptured()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DDataflowEnvironment.cpp522 if (Capture.capturesVariable()) { in initialize()
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h4964 if (!Node.capturesVariable()) in AST_MATCHER_P()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriter.cpp6649 Capture.capturesVariable() ? Capture.getCapturedVar() : nullptr; in AddCXXDefinitionData()

12