Home
last modified time | relevance | path

Searched refs:Captures (Results 1 – 24 of 24) sorted by relevance

/external/easymock/src/org/easymock/internal/
DInvocation.java27 import org.easymock.internal.matchers.Captures;
39 private final Collection<Captures<?>> currentCaptures = new ArrayList<Captures<?>>(
156 public void addCapture(Captures<Object> capture, Object value) { in addCapture()
162 for (Captures<?> c : currentCaptures) { in validateCaptures()
168 for (Captures<?> c : currentCaptures) { in clearCaptures()
/external/easymock/src/org/easymock/internal/matchers/
DCaptures.java24 public class Captures<T> implements IArgumentMatcher, Serializable { class
32 public Captures(Capture<T> captured) { in Captures() method in Captures
46 LastControl.getCurrentInvocation().addCapture((Captures<Object>) this, in matches()
/external/clang/include/clang/Sema/
DScopeInfo.h486 SmallVector<Capture, 4> Captures; variable
499 Captures.push_back(Capture(Var, isBlock, isByref, isNested, Loc, in addCapture()
501 CaptureMap[Var] = Captures.size(); in addCapture()
505 Captures.push_back(Capture(/*Var*/ nullptr, /*isBlock*/ false, in addVLATypeCapture()
520 return Captures[CXXThisCaptureIndex - 1]; in getCXXThisCapture()
535 return Captures[CaptureMap[Var] - 1]; in getCapture()
542 return Captures[Known->second - 1]; in getCapture()
711 NumExplicitCaptures = Captures.size(); in finishedExplicitCaptures()
842 Captures.push_back(Capture(Capture::ThisCapture, isNested, Loc, CaptureType, in addThisCapture()
844 CXXThisCaptureIndex = Captures.size(); in addThisCapture()
DDeclSpec.h2236 SmallVector<LambdaCapture, 4> Captures; member
2248 Captures.push_back(LambdaCapture(Kind, Loc, Id, EllipsisLoc, Init, in addCapture()
/external/clang/lib/AST/
DExprCXX.cpp929 ArrayRef<Capture> Captures, in LambdaExpr() argument
942 NumCaptures(Captures.size()), in LambdaExpr()
948 assert(CaptureInits.size() == Captures.size() && "Wrong number of arguments"); in LambdaExpr()
958 Data.Captures = (Capture *)Context.Allocate(sizeof(Capture) * NumCaptures); in LambdaExpr()
959 Capture *ToCapture = Data.Captures; in LambdaExpr()
960 for (unsigned I = 0, N = Captures.size(); I != N; ++I) { in LambdaExpr()
961 if (Captures[I].isExplicit()) in LambdaExpr()
964 *ToCapture++ = Captures[I]; in LambdaExpr()
982 sizeof(unsigned) * Captures.size()); in LambdaExpr()
983 getArrayIndexStarts()[Captures.size()] = ArrayIndexVars.size(); in LambdaExpr()
[all …]
DStmt.cpp1084 ArrayRef<Capture> Captures, in CapturedStmt() argument
1088 : Stmt(CapturedStmtClass), NumCaptures(Captures.size()), in CapturedStmt()
1104 std::copy(Captures.begin(), Captures.end(), Buffer); in CapturedStmt()
1115 ArrayRef<Capture> Captures, in Create() argument
1128 assert(CaptureInits.size() == Captures.size() && "wrong number of arguments"); in Create()
1130 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (Captures.size() + 1); in Create()
1131 if (!Captures.empty()) { in Create()
1134 Size += sizeof(Capture) * Captures.size(); in Create()
1138 return new (Mem) CapturedStmt(S, Kind, Captures, CaptureInits, CD, RD); in Create()
DDeclCXX.cpp1023 llvm::DenseMap<const VarDecl *, FieldDecl *> &Captures, in getCaptureFields() argument
1025 Captures.clear(); in getCaptureFields()
1030 for (const LambdaCapture *C = Lambda.Captures, *CEnd = C + Lambda.NumCaptures; in getCaptureFields()
1035 Captures[C->getCapturedVar()] = *Field; in getCaptureFields()
DDecl.cpp3752 Captures = nullptr; in setCaptures()
3763 Captures = static_cast<Capture*>(buffer); in setCaptures()
/external/clang/lib/CodeGen/
DCGBlocks.h206 llvm::DenseMap<const VarDecl*, Capture> Captures; variable
238 it = Captures.find(var); in getCapture()
239 assert(it != Captures.end() && "no entry for variable!"); in getCapture()
DCGException.cpp1336 SmallVector<const VarDecl *, 4> Captures; member
1351 Captures.push_back(ParentThis); in VisitDeclRefExpr()
1357 Captures.push_back(D); in VisitDeclRefExpr()
1361 Captures.push_back(ParentThis); in VisitCXXThisExpr()
1374 if (Finder.Captures.empty()) in EmitCapturedLocals()
1384 for (const VarDecl *VD : Finder.Captures) { in EmitCapturedLocals()
DCGBlocks.cpp210 info.Captures[Capture->getVariable()] in setIndex()
402 info.Captures[variable] = CGBlockInfo::Capture::makeConstant(constant); in computeBlockInfo()
/external/clang/lib/Sema/
DSemaLambda.cpp963 for (auto C = Intro.Captures.begin(), E = Intro.Captures.end(); C != E; in ActOnStartOfLambdaDefinition()
1387 SmallVector<LambdaCapture, 4> Captures; in ActOnLambdaExpr() local
1413 for (unsigned I = 0, N = LSI->Captures.size(); I != N; ++I) { in ActOnLambdaExpr()
1414 LambdaScopeInfo::Capture From = LSI->Captures[I]; in ActOnLambdaExpr()
1420 Captures.push_back( in ActOnLambdaExpr()
1428 Captures.push_back( in ActOnLambdaExpr()
1436 Captures.push_back(LambdaCapture(From.getLocation(), IsImplicit, Kind, in ActOnLambdaExpr()
1508 if (Captures.empty() && CaptureDefault == LCD_None) in ActOnLambdaExpr()
1534 Captures, in ActOnLambdaExpr()
DSemaStmt.cpp3733 SmallVectorImpl<CapturedStmt::Capture> &Captures, in buildCapturedStmtCaptureList() argument
3741 Captures.push_back(CapturedStmt::Capture(Cap->getLocation(), in buildCapturedStmtCaptureList()
3746 Captures.push_back( in buildCapturedStmtCaptureList()
3755 Captures.push_back(CapturedStmt::Capture(Cap->getLocation(), in buildCapturedStmtCaptureList()
3860 SmallVector<CapturedStmt::Capture, 4> Captures; in ActOnCapturedRegionEnd() local
3862 buildCapturedStmtCaptureList(Captures, CaptureInits, RSI->Captures); in ActOnCapturedRegionEnd()
3868 RSI->CapRegionKind, Captures, in ActOnCapturedRegionEnd()
DSemaExpr.cpp11290 SmallVector<BlockDecl::Capture, 4> Captures; in ActOnBlockStmtExpr() local
11291 for (unsigned i = 0, e = BSI->Captures.size(); i != e; i++) { in ActOnBlockStmtExpr()
11292 CapturingScopeInfo::Capture &Cap = BSI->Captures[i]; in ActOnBlockStmtExpr()
11297 Captures.push_back(NewCap); in ActOnBlockStmtExpr()
11299 BSI->TheDecl->setCaptures(Context, Captures.begin(), Captures.end(), in ActOnBlockStmtExpr()
DSemaCodeComplete.cpp4478 for (const auto &C : Intro.Captures) { in CodeCompleteLambdaIntroducer()
/external/llvm/lib/Transforms/IPO/
DFunctionAttrs.cpp455 bool Captures = true; in determinePointerReadAttrs() local
458 Captures = false; in determinePointerReadAttrs()
461 if (Captures) in determinePointerReadAttrs()
492 Captures &= !CS.doesNotCapture(A - B); in determinePointerReadAttrs()
/external/clang/include/clang/AST/
DDecl.h3432 Capture *Captures; variable
3444 SignatureAsWritten(nullptr), Captures(nullptr), NumCaptures(0), in BlockDecl()
3524 capture_iterator capture_begin() { return Captures; } in capture_begin()
3525 capture_iterator capture_end() { return Captures + NumCaptures; } in capture_end()
3526 capture_const_iterator capture_begin() const { return Captures; } in capture_begin()
3527 capture_const_iterator capture_end() const { return Captures + NumCaptures; } in capture_end()
DDeclCXX.h538 ManglingNumber(0), ContextDecl(nullptr), Captures(nullptr), in LambdaDefinitionData()
583 Capture *Captures; member
1064 void getCaptureFields(llvm::DenseMap<const VarDecl *, FieldDecl *> &Captures,
1074 return isLambda() ? getLambdaData().Captures : nullptr; in captures_begin()
DStmt.h2068 CapturedStmt(Stmt *S, CapturedRegionKind Kind, ArrayRef<Capture> Captures,
2085 ArrayRef<Capture> Captures,
DExprCXX.h1388 ArrayRef<Capture> Captures,
1430 ArrayRef<Capture> Captures,
/external/easymock/src/org/easymock/
DEasyMock.java1461 reportMatcher(new Captures<T>(captured)); in capture()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp1358 Lambda.Captures in ReadCXXDefinitionData()
1360 Capture *ToCapture = Lambda.Captures; in ReadCXXDefinitionData()
DASTWriter.cpp5715 const LambdaCapture &Capture = Lambda.Captures[I]; in AddCXXDefinitionData()
/external/clang/lib/Parse/
DParseExprCXX.cpp816 !Intro.Captures.empty())) { in ParseLambdaIntroducer()