| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGBlocks.h | 164 class Capture { 204 static Capture 208 const BlockDecl::Capture *Cap) { in makeIndex() 209 Capture v; in makeIndex() 221 static Capture makeConstant(llvm::Value *value, in makeConstant() 223 Capture v; in makeConstant() 237 const BlockDecl::Capture *Cap; 269 llvm::DenseMap<const VarDecl *, Capture *> Captures; 272 llvm::SmallVector<Capture, 4> SortedCaptures; 301 const Capture &getCapture(const VarDecl *var) const { in getCapture() [all …]
|
| H A D | CGBlocks.cpp | 74 const BlockDecl::Capture *CI; 75 const CGBlockInfo::Capture *Capture; member 82 const CGBlockInfo::Capture &Capture) in BlockCaptureManagedEntity() 84 DisposeFlags(DisposeFlags), CI(&CI), Capture(&Capture) {} in BlockCaptureManagedEntity() 87 return Capture->getOffset() < Other.Capture->getOffset(); in operator <() 328 const BlockDecl::Capture *Capture; // null for 'this' member 346 if (!Capture) { in setIndex() 352 DisposeFlags, Capture)); in setIndex() 1721 const BlockDecl::Capture &CI = *Cap.Cap; in getBlockCaptureStr() 1954 const BlockDecl::Capture &CI = *capture.Cap; in GenerateCopyHelperFunction() [all …]
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | cxx1z-constexpr-lambdas.cpp | 320 int Capture = 42; in fn() local 321 return [=]() constexpr { return Capture; }(); in fn() 328 int Capture = 42; in tfn() local 329 return [=]() constexpr { return Capture; }(); in tfn() 335 int Capture = 42; in gfn() local 336 return [=](auto P) constexpr { return Capture + P; }(58); in gfn() 342 int Capture = 42; in OtherCaptures() local 344 auto Inner = [&](auto O) constexpr { return O(58) + Capture; }; in OtherCaptures()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
| H A D | UncountedLambdaCapturesChecker.cpp | 71 void reportBug(const LambdaCapture &Capture, VarDecl *CapturedVar, in reportBug() argument 78 if (Capture.isExplicit()) { in reportBug() 90 printQuotedQualifiedName(Os, Capture.getCapturedVar()); in reportBug() 93 PathDiagnosticLocation BSLoc(Capture.getLocation(), BR->getSourceManager()); in reportBug()
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | ScopeInfo.h | 533 class Capture { 592 Capture(VarDecl *Var, bool Block, bool ByRef, bool IsNested, in Capture() function 602 Capture(IsThisCapture, bool IsNested, SourceLocation Loc, in Capture() function 610 Capture(IsVLACapture, const VariableArrayType *VLA, bool IsNested, in Capture() function 688 SmallVector<Capture, 4> Captures; 701 Captures.push_back(Capture(Var, isBlock, isByref, isNested, Loc, in addCapture() 708 Captures.push_back(Capture(Capture::VLACapture, VLAType, in addVLATypeCapture() 719 Capture &getCXXThisCapture() { in getCXXThisCapture() 734 Capture &getCapture(VarDecl *Var) { in getCapture() 739 const Capture &getCapture(VarDecl *Var) const { in getCapture() [all …]
|
| H A D | Initialization.h | 208 struct C Capture; member 241 new (&Capture) C; in InitializedEntity() 242 Capture.VarID = VarID; in InitializedEntity() 243 Capture.Location = Loc; in InitializedEntity() 539 return Capture.VarID ? Capture.VarID->getName() : "this"; in getCapturedVarName() 546 return Capture.Location; in getCaptureLoc()
|
| /llvm-project-15.0.7/lldb/source/API/ |
| H A D | SBReproducer.cpp | 67 const char *SBReproducer::Capture() { in Capture() function in SBReproducer 70 if (auto e = Reproducer::Initialize(ReproducerMode::Capture, llvm::None)) { in Capture() 78 const char *SBReproducer::Capture(const char *path) { in Capture() function in SBReproducer 82 Reproducer::Initialize(ReproducerMode::Capture, FileSpec(path))) { in Capture()
|
| /llvm-project-15.0.7/llvm/test/Transforms/SafeStack/X86/ |
| H A D | ssp.ll | 15 ; CHECK: call void @Capture 16 call void @Capture(i8* %a) 30 declare void @Capture(i8*)
|
| H A D | debug-loc.ll | 28 call void @Capture(%struct.S* %zzz), !dbg !23 29 call void @Capture(%struct.S* %xxx), !dbg !24 32 ; CHECK: call void @Capture 33 ; CHECK: call void @Capture 46 declare void @Capture(%struct.S*) #2
|
| H A D | abi_ssp.ll | 19 call void @Capture(i8* %a) 26 declare void @Capture(i8*)
|
| H A D | abi.ll | 22 call void @Capture(i8* %a) 30 declare void @Capture(i8*)
|
| /llvm-project-15.0.7/llvm/test/DebugInfo/X86/ |
| H A D | dw_op_minus.mir | 7 # void Capture(int *); 10 # Capture(buf); 21 # RCX is clobbered in call @Capture, but there is a spilled copy. 44 call void @Capture(i32* %arraydecay), !dbg !17 52 declare void @Capture(i32*) 111 …CALL64pcrel32 @Capture, csr_64, implicit $rsp, implicit $ssp, implicit killed $rdi, implicit-def $…
|
| /llvm-project-15.0.7/lldb/include/lldb/API/ |
| H A D | SBReproducer.h | 45 static const char *Capture(); 46 static const char *Capture(const char *path);
|
| /llvm-project-15.0.7/llvm/test/Transforms/SafeStack/ARM/ |
| H A D | abi.ll | 12 call void @Capture(i8* %a) 18 declare void @Capture(i8*)
|
| H A D | debug.ll | 10 ; void Capture(char*x); 11 ; void f() { char c[16]; Capture(c); } 33 call void @Capture(i8* nonnull %0) #5, !dbg !37 44 declare void @Capture(i8*) local_unnamed_addr #4
|
| /llvm-project-15.0.7/llvm/test/Transforms/SafeStack/AArch64/ |
| H A D | abi.ll | 14 call void @Capture(i8* %a) 20 declare void @Capture(i8*)
|
| H A D | unreachable.ll | 19 call void @Capture(i8* %a) 23 declare void @Capture(i8*)
|
| H A D | abi_ssp.ll | 16 call void @Capture(i128* %a) 23 declare void @Capture(i128*)
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaLambda.cpp | 554 for (const auto &Capture : Captures) { in addLambdaParameters() local 559 << Capture.Id << true; in addLambdaParameters() 1701 const sema::Capture &Capture) { in BuildCaptureField() argument 1702 SourceLocation Loc = Capture.getLocation(); in BuildCaptureField() 1706 if (Capture.isVariableCapture()) { in BuildCaptureField() 1707 auto *Var = Capture.getVariable(); in BuildCaptureField() 1742 if (Capture.isVLATypeCapture()) in BuildCaptureField() 1792 const Capture &From = LSI->Captures[I]; in BuildLambdaExpr() 1839 LambdaCapture Capture = [&] { in BuildLambdaExpr() local 1874 Captures.push_back(Capture); in BuildLambdaExpr() [all …]
|
| H A D | SemaCUDA.cpp | 853 const sema::Capture &Capture) { in CUDACheckLambdaCapture() argument 879 if (!ShouldCheck || !Capture.isReferenceCapture()) in CUDACheckLambdaCapture() 882 if (Capture.isVariableCapture()) { in CUDACheckLambdaCapture() 883 SemaDiagnosticBuilder(DiagKind, Capture.getLocation(), in CUDACheckLambdaCapture() 885 << Capture.getVariable(); in CUDACheckLambdaCapture() 886 } else if (Capture.isThisCapture()) { in CUDACheckLambdaCapture() 891 SemaDiagnosticBuilder(DiagKind, Capture.getLocation(), in CUDACheckLambdaCapture()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | Stmt.cpp | 1277 CapturedStmt::Capture::Capture(SourceLocation Loc, VariableCaptureKind Kind, in Capture() function in CapturedStmt::Capture 1298 CapturedStmt::Capture::getCaptureKind() const { in getCaptureKind() 1302 VarDecl *CapturedStmt::Capture::getCapturedVar() const { in getCapturedVar() 1314 return reinterpret_cast<Capture *>( in getStoredCaptures() 1320 ArrayRef<Capture> Captures, in CapturedStmt() 1339 Capture *Buffer = getStoredCaptures(); in CapturedStmt() 1351 ArrayRef<Capture> Captures, in Create() 1369 Size = llvm::alignTo(Size, alignof(Capture)); in Create() 1370 Size += sizeof(Capture) * Captures.size(); in Create() 1382 Size = llvm::alignTo(Size, alignof(Capture)); in CreateDeserialized() [all …]
|
| /llvm-project-15.0.7/lldb/bindings/interface/ |
| H A D | SBReproducer.i | 17 static const char *Capture(const char *path);
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | autoreleasewritechecker_test.m | 288 writeIntoError(error); // expected-warning{{Capture of autoreleasing out parameter}} 313 … [capturer captureErrorOut:error]; // expected-warning{{Capture of autoreleasing out parameter}} 327 writeIntoError(error); // expected-warning{{Capture of autoreleasing out parameter}} 329 writeIntoError(error); // expected-warning{{Capture of autoreleasing out parameter}} 340 writeIntoError(err); // expected-warning{{Capture of autoreleasing out parameter 'err'}}
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | NoEscapeCheck.cpp | 34 for (const BlockDecl::Capture &CapturedVar : EscapingBlockDecl->captures()) { in check()
|
| /llvm-project-15.0.7/lldb/test/Shell/Reproducer/ |
| H A D | TestDiscard.test | 8 # Capture but don't generate the reproducer.
|