Searched refs:Capture (Results 1 - 23 of 23) sorted by relevance

/freebsd-9.3-release/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGBlocks.h152 class Capture { class in class:clang::CodeGen::CGBlockInfo
173 static Capture makeIndex(unsigned index) {
174 Capture v;
179 static Capture makeConstant(llvm::Value *value) {
180 Capture v;
206 llvm::DenseMap<const VarDecl*, Capture> Captures;
233 const Capture &getCapture(const VarDecl *var) const {
236 Capture &getCapture(const VarDecl *var) {
237 llvm::DenseMap<const VarDecl*, Capture>::iterator
H A DCGBlocks.cpp189 const BlockDecl::Capture *Capture; // null for 'this' member in struct:__anon3066::BlockLayoutChunk
194 const BlockDecl::Capture *capture,
197 Capture(capture), Type(type) {}
201 if (!Capture)
204 info.Captures[Capture->getVariable()]
205 = CGBlockInfo::Capture::makeIndex(index);
213 bool LeftByref = left.Capture ? left.Capture->isByRef() : false;
214 bool RightByref = right.Capture
[all...]
H A DCGDebugInfo.cpp808 // For C++11 Lambdas a Field will be the same as a Capture, but the Capture
816 const LambdaExpr::Capture C = *I;
2911 const BlockDecl::Capture *Capture; member in struct:__anon3078::BlockLayoutChunk
2968 chunk.Capture = 0;
2976 const BlockDecl::Capture &capture = *i;
2978 const CGBlockInfo::Capture &captureInfo = block.getCapture(variable);
2987 chunk.Capture = &capture;
2997 const BlockDecl::Capture *captur
[all...]
H A DCGObjCMac.cpp1975 const CGBlockInfo::Capture &capture = blockInfo.getCapture(variable);
2494 const CGBlockInfo::Capture &capture = blockInfo.getCapture(variable);
/freebsd-9.3-release/contrib/llvm/tools/clang/include/clang/Sema/
H A DScopeInfo.h339 class Capture { class in class:clang::sema::CapturingScopeInfo
378 Capture(VarDecl *Var, bool Block, bool ByRef, bool IsNested, function in class:clang::sema::CapturingScopeInfo::Capture
387 Capture(IsThisCapture, bool IsNested, SourceLocation Loc, function in class:clang::sema::CapturingScopeInfo::Capture
444 SmallVector<Capture, 4> Captures;
457 Captures.push_back(Capture(Var, isBlock, isByref, isNested, Loc,
469 Capture &getCXXThisCapture() {
481 Capture &getCapture(VarDecl *Var) {
486 const Capture &getCapture(VarDecl *Var) const {
792 Captures.push_back(Capture(Capture
[all...]
H A DInitialization.h155 struct C Capture; member in union:clang::InitializedEntity::__anon2892
189 Capture.VarID = VarID;
190 Capture.Location = Loc.getRawEncoding();
408 return Capture.VarID->getName();
414 return SourceLocation::getFromRawEncoding(Capture.Location);
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/AST/
H A DStmt.cpp1014 CapturedStmt::Capture *CapturedStmt::getStoredCaptures() const {
1017 // Offset of the first Capture object.
1019 llvm::RoundUpToAlignment(Size, llvm::alignOf<Capture>());
1021 return reinterpret_cast<Capture *>(
1027 ArrayRef<Capture> Captures,
1045 // Copy all Capture objects.
1046 Capture *Buffer = getStoredCaptures();
1058 ArrayRef<Capture> Captures,
1065 // | CapturedStmt, Init, ..., Init, S, Capture, ..., Capture |
[all...]
H A DExprCXX.cpp889 LambdaExpr::Capture::Capture(SourceLocation Loc, bool Implicit, function in class:LambdaExpr::Capture
913 LambdaCaptureKind LambdaExpr::Capture::getCaptureKind() const {
925 ArrayRef<Capture> Captures,
954 Data.Captures = (Capture *)Context.Allocate(sizeof(Capture) * NumCaptures);
955 Capture *ToCapture = Data.Captures;
988 ArrayRef<Capture> Captures,
1058 "Capture index out-of-range");
H A DDecl.cpp3450 const Capture *begin,
3451 const Capture *end,
3463 // Avoid new Capture[] because we don't want to provide a default
3465 size_t allocationSize = NumCaptures * sizeof(Capture);
3468 Captures = static_cast<Capture*>(buffer);
H A DDeclCXX.cpp1001 for (LambdaExpr::Capture *C = Lambda.Captures, *CEnd = C + Lambda.NumCaptures;
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Sema/
H A DSemaLambda.cpp1279 SmallVector<LambdaExpr::Capture, 4> Captures;
1306 LambdaScopeInfo::Capture From = LSI->Captures[I];
1312 Captures.push_back(LambdaExpr::Capture(From.getLocation(),
1323 Captures.push_back(LambdaExpr::Capture(From.getLocation(), IsImplicit,
1520 BlockDecl::Capture Capture(/*Variable=*/CapVar, /*ByRef=*/false,
1522 Block->setCaptures(Context, &Capture, &Capture + 1,
H A DSemaStmt.cpp3223 SmallVectorImpl<CapturedStmt::Capture> &Captures,
3225 ArrayRef<CapturingScopeInfo::Capture> Candidates) {
3227 typedef ArrayRef<CapturingScopeInfo::Capture>::const_iterator CaptureIter;
3231 Captures.push_back(CapturedStmt::Capture(Cap->getLocation(),
3240 Captures.push_back(CapturedStmt::Capture(Cap->getLocation(),
3286 SmallVector<CapturedStmt::Capture, 4> Captures;
H A DSemaInit.cpp2509 return DeclarationName(Capture.VarID);
2611 OS << DeclarationName(Capture.VarID);
H A DSemaExpr.cpp10366 SmallVector<BlockDecl::Capture, 4> Captures;
10368 CapturingScopeInfo::Capture &Cap = BSI->Captures[i];
10371 BlockDecl::Capture NewCap(Cap.getVariable(), Cap.isBlockCapture(),
11371 const CapturingScopeInfo::Capture &Cap = CSI->getCapture(Var);
11551 /// \brief Capture the given variable in the captured region.
11719 /// \brief Capture the given variable in the lambda.
11786 // Capture this variable in the lambda.
12103 assert(E && "Capture variable should be used in an expression.");
/freebsd-9.3-release/contrib/llvm/tools/clang/include/clang/AST/
H A DDecl.h3178 class Capture {
3193 Capture(VarDecl *variable, bool byRef, bool nested, Expr *copy)
3229 Capture *Captures;
3291 typedef const Capture *capture_iterator;
3292 typedef const Capture *capture_const_iterator;
3308 const Capture *begin,
3309 const Capture *end,
H A DStmt.h1918 class Capture { class in class:clang::CapturedStmt
1931 Capture(SourceLocation Loc, VariableCaptureKind Kind, VarDecl *Var = 0) function in class:clang::CapturedStmt::Capture
1978 CapturedStmt(Stmt *S, CapturedRegionKind Kind, ArrayRef<Capture> Captures,
1988 Capture *getStoredCaptures() const;
1995 ArrayRef<Capture> Captures,
2043 typedef Capture *capture_iterator;
2044 typedef const Capture *const_capture_iterator;
H A DDeclCXX.h507 typedef LambdaExpr::Capture Capture; typedef in struct:clang::CXXRecordDecl::LambdaDefinitionData
532 /// \brief The Default Capture.
553 Capture *Captures;
1028 typedef const LambdaExpr::Capture* capture_const_iterator;
H A DExprCXX.h1311 /// \brief Flag used by the Capture class to indicate that the given
1315 /// \brief Flag used by the Capture class to indicate that the
1363 class Capture { class in class:clang::LambdaExpr
1387 Capture(SourceLocation Loc, bool Implicit,
1451 ArrayRef<Capture> Captures,
1494 ArrayRef<Capture> Captures,
1521 typedef const Capture *capture_iterator;
H A DRecursiveASTVisitor.h247 bool TraverseLambdaCapture(LambdaExpr *LE, const LambdaExpr::Capture *C);
826 LambdaExpr *LE, const LambdaExpr::Capture *C) {
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Serialization/
H A DASTReaderDecl.cpp1061 SmallVector<BlockDecl::Capture, 16> captures;
1070 captures.push_back(BlockDecl::Capture(decl, byRef, nested, copyExpr));
1225 typedef LambdaExpr::Capture Capture; typedef
1236 = (Capture*)Reader.Context.Allocate(sizeof(Capture)*Lambda.NumCaptures);
1237 Capture *ToCapture = Lambda.Captures;
1245 *ToCapture++ = Capture(Loc, IsImplicit, Kind, 0, SourceLocation());
1251 *ToCapture++ = Capture(Loc, IsImplicit, Kind, Var, EllipsisLoc);
H A DASTWriter.cpp5139 LambdaExpr::Capture &Capture = Lambda.Captures[I]; local
5140 AddSourceLocation(Capture.getLocation(), Record);
5141 Record.push_back(Capture.isImplicit());
5142 Record.push_back(Capture.getCaptureKind());
5143 switch (Capture.getCaptureKind()) {
5149 Capture.capturesVariable() ? Capture.getCapturedVar() : 0;
5151 AddSourceLocation(Capture.isPackExpansion() ? Capture
[all...]
H A DASTWriterDecl.cpp838 const BlockDecl::Capture &capture = *i;
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Frontend/
H A DASTUnit.cpp2011 CaptureDroppedDiagnostics Capture(CaptureDiagnostics, *Diags,
2431 CaptureDroppedDiagnostics Capture(true,

Completed in 600 milliseconds