| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | LambdaCapture.h | 88 bool capturesVariable() const { in capturesVariable() function 105 assert(capturesVariable() && "No variable available for capture"); in getCapturedVar()
|
| H A D | StmtDataCollectors.td | 202 if (C.capturesVariable())
|
| H A D | Stmt.h | 3573 bool capturesVariable() const { return getCaptureKind() == VCK_ByRef; } in capturesVariable() function 3659 bool capturesVariable(const VarDecl *Var) const;
|
| H A D | Decl.h | 4380 bool capturesVariable(const VarDecl *var) const;
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
| H A D | UncountedLambdaCapturesChecker.cpp | 59 if (C.capturesVariable()) { in visitLambdaExpr()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/ |
| H A D | Aliasing.cpp | 28 return C.capturesVariable() && C.getCaptureKind() == LCK_ByRef && in capturesByRef()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | Stmt.cpp | 1303 assert((capturesVariable() || capturesVariableByCopy()) && in getCapturedVar() 1423 bool CapturedStmt::capturesVariable(const VarDecl *Var) const { in capturesVariable() function in CapturedStmt 1425 if (!I.capturesVariable() && !I.capturesVariableByCopy()) in capturesVariable()
|
| H A D | ExprCXX.cpp | 1214 return (C->capturesVariable() && C->getCapturedVar()->isInitCapture() && in isInitCapture()
|
| H A D | DeclCXX.cpp | 1584 else if (C->capturesVariable()) in getCaptureFields()
|
| H A D | Decl.cpp | 4860 bool BlockDecl::capturesVariable(const VarDecl *variable) const { in capturesVariable() function in BlockDecl
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/ |
| H A D | UninitializedObjectChecker.cpp | 589 if (It->capturesVariable()) in getVariableName()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | DeadStoresChecker.cpp | 512 if (!C.capturesVariable()) in findLambdaReferenceCaptures()
|
| /llvm-project-15.0.7/clang/lib/Index/ |
| H A D | IndexBody.cpp | 398 if (C->capturesVariable() && IndexCtx.shouldIndexFunctionLocalSymbols()) in TraverseLambdaCapture()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | LoopConvertUtils.cpp | 787 if (C->capturesVariable()) { in TraverseLambdaCapture()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | AnalysisDeclContext.cpp | 169 if (!LC.capturesVariable()) in getSelfDecl()
|
| H A D | CalledOnceCheck.cpp | 1113 return Block->capturesVariable(Parameter); in isCaptured()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGOpenMPRuntimeGPU.cpp | 295 if (C.capturesVariable() && !C.capturesVariableByCopy()) { in VisitOpenMPCapturedStmt() 388 if (C.capturesVariable() && !C.capturesVariableByCopy()) { in VisitCapturedStmt() 400 if (C.capturesVariable()) { in VisitLambdaExpr() 3797 if (!C.capturesVariable()) in adjustTargetSpecificDataForLambdas() 3826 if (!CS->capturesVariable(VD)) in adjustTargetSpecificDataForLambdas()
|
| H A D | CGStmtOpenMP.cpp | 71 cast<BlockDecl>(CGF.CurCodeDecl)->capturesVariable(VD)); in isCapturedVar() 89 if (C.capturesVariable() || C.capturesVariableByCopy()) { in OMPLexicalScope() 209 cast<BlockDecl>(CGF.CurCodeDecl)->capturesVariable(VD)); in isCapturedVar() 262 if (C.capturesVariable() || C.capturesVariableByCopy()) { in OMPSimdLexicalScope() 365 assert(CurCap->capturesVariable() && "Expected capture by reference."); in GenerateOpenMPCapturedVars() 472 if (I->capturesVariable() || I->capturesVariableByCopy()) { in emitOutlinedFunctionPrologue() 570 } else if (I->capturesVariable()) { in emitOutlinedFunctionPrologue()
|
| H A D | CGOpenMPRuntime.cpp | 363 if (!C.capturesVariable() && !C.capturesVariableByCopy()) in CGOpenMPInnerExprInfo() 8342 assert(Cap.capturesVariable() && "Expected capture by reference only!"); in getMapModifiersForPrivateClauses() 8970 if (!LC.capturesVariable()) in generateInfoForLambdaCaptures() 9062 (Cap->capturesVariable() ? OMP_MAP_TO : OMP_MAP_LITERAL) | in generateInfoForCapture() 9309 assert(CI.capturesVariable() && "Expected captured reference."); in generateDefaultMapInfo() 10411 if (CI->capturesVariable()) in emitTargetCall() 12319 if (Cap.capturesVariable() || Cap.capturesVariableByCopy()) in tryToDisableInnerAnalysis() 12713 if (!CS->capturesVariable(VD) || IgnoredDecls.contains(VD)) in checkAndEmitSharedLastprivateConditional()
|
| H A D | CodeGenFunction.h | 421 else if (I->capturesVariable())
|
| H A D | CGDebugInfo.cpp | 1497 if (C.capturesVariable()) { in CollectRecordLambdaFields()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaInit.cpp | 7429 if (Cap.capturesVariable()) in visitLocalsRetainedByInitializer() 7437 if (Cap.capturesVariable()) in visitLocalsRetainedByInitializer() 7580 if (!Path[I].Capture->capturesVariable()) in nextPathEntryRange() 7845 if (!Elem.Capture->capturesVariable()) in checkInitializerLifetime()
|
| H A D | SemaOpenMP.cpp | 3671 if (!CS || (isa<OMPCapturedExprDecl>(VD) && !CS->capturesVariable(VD) && in VisitDeclRefExpr() 3686 if (VD->hasLocalStorage() && CS && !CS->capturesVariable(VD) && in VisitDeclRefExpr() 3702 if (VD->hasGlobalStorage() && CS && !CS->capturesVariable(VD) && in VisitDeclRefExpr() 4054 if (!Cap.capturesVariable() && !Cap.capturesVariableByCopy()) in visitSubCaptures()
|
| H A D | TreeTransform.h | 13205 assert(C->capturesVariable() && "unexpected kind of lambda capture"); in TransformLambdaExpr() 13331 assert(C->capturesVariable() && "unexpected kind of lambda capture"); in SkipLambdaBody()
|
| /llvm-project-15.0.7/clang/lib/Serialization/ |
| H A D | ASTWriter.cpp | 5790 Capture.capturesVariable() ? Capture.getCapturedVar() : nullptr; in AddCXXDefinitionData()
|