Home
last modified time | relevance | path

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

12

/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/clang/include/clang/Sema/
DScopeInfo.h528 SmallVector<Capture, 4> Captures; variable
541 Captures.push_back(Capture(Var, isBlock, isByref, isNested, Loc, in addCapture()
543 CaptureMap[Var] = Captures.size(); in addCapture()
547 Captures.push_back(Capture(/*Var*/ nullptr, /*isBlock*/ false, in addVLATypeCapture()
565 return Captures[CXXThisCaptureIndex - 1]; in getCXXThisCapture()
580 return Captures[CaptureMap[Var] - 1]; in getCapture()
587 return Captures[Known->second - 1]; in getCapture()
748 NumExplicitCaptures = Captures.size(); in finishedExplicitCaptures()
880 Captures.push_back(Capture(Capture::ThisCapture, isNested, Loc, QualType(), in addThisCapture()
882 CXXThisCaptureIndex = Captures.size(); in addThisCapture()
DDeclSpec.h2345 SmallVector<LambdaCapture, 4> Captures; member
2358 Captures.push_back(LambdaCapture(Kind, Loc, Id, EllipsisLoc, InitKind, Init, in addCapture()
/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/test/Analysis/
Dblocks.mm8 // Captures i, with no copy expression.
32 // Captures s, with a copy expression calling the copy constructor for StructWithCopyConstructor.
55 // Captures s by reference, so no copy expression.
/external/clang/lib/AST/
DExprCXX.cpp854 ArrayRef<LambdaCapture> Captures, bool ExplicitParams, in LambdaExpr() argument
864 NumCaptures(Captures.size()), CaptureDefault(CaptureDefault), in LambdaExpr()
867 assert(CaptureInits.size() == Captures.size() && "Wrong number of arguments"); in LambdaExpr()
877 Data.Captures = in LambdaExpr()
879 LambdaCapture *ToCapture = Data.Captures; in LambdaExpr()
880 for (unsigned I = 0, N = Captures.size(); I != N; ++I) { in LambdaExpr()
881 if (Captures[I].isExplicit()) in LambdaExpr()
884 *ToCapture++ = Captures[I]; in LambdaExpr()
902 sizeof(unsigned) * Captures.size()); in LambdaExpr()
903 getArrayIndexStarts()[Captures.size()] = ArrayIndexVars.size(); in LambdaExpr()
[all …]
DStmt.cpp1009 ArrayRef<Capture> Captures, in CapturedStmt() argument
1013 : Stmt(CapturedStmtClass), NumCaptures(Captures.size()), in CapturedStmt()
1029 std::copy(Captures.begin(), Captures.end(), Buffer); in CapturedStmt()
1040 ArrayRef<Capture> Captures, in Create() argument
1053 assert(CaptureInits.size() == Captures.size() && "wrong number of arguments"); in Create()
1055 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (Captures.size() + 1); in Create()
1056 if (!Captures.empty()) { in Create()
1059 Size += sizeof(Capture) * Captures.size(); in Create()
1063 return new (Mem) CapturedStmt(S, Kind, Captures, CaptureInits, CD, RD); in Create()
DDeclCXX.cpp1073 llvm::DenseMap<const VarDecl *, FieldDecl *> &Captures, in getCaptureFields() argument
1075 Captures.clear(); in getCaptureFields()
1080 for (const LambdaCapture *C = Lambda.Captures, *CEnd = C + Lambda.NumCaptures; in getCaptureFields()
1085 Captures[C->getCapturedVar()] = *Field; in getCaptureFields()
DDecl.cpp3887 void BlockDecl::setCaptures(ASTContext &Context, ArrayRef<Capture> Captures, in setCaptures() argument
3890 this->NumCaptures = Captures.size(); in setCaptures()
3892 if (Captures.empty()) { in setCaptures()
3893 this->Captures = nullptr; in setCaptures()
3897 this->Captures = Captures.copy(Context).data(); in setCaptures()
/external/clang/lib/CodeGen/
DCGBlocks.h226 llvm::DenseMap<const VarDecl*, Capture> Captures; variable
259 it = Captures.find(var); in getCapture()
260 assert(it != Captures.end() && "no entry for variable!"); in getCapture()
DCGException.cpp1442 llvm::SmallSetVector<const VarDecl *, 4> Captures; member
1449 return !Captures.empty() || SEHCodeSlot.isValid(); in foundCaptures()
1463 Captures.insert(ParentThis); in VisitDeclRefExpr()
1469 Captures.insert(D); in VisitDeclRefExpr()
1473 Captures.insert(ParentThis); in VisitCXXThisExpr()
1581 for (const VarDecl *VD : Finder.Captures) { in EmitCapturedLocals()
DCGBlocks.cpp211 info.Captures.insert({Capture->getVariable(), in setIndex()
385 info.Captures[variable] = CGBlockInfo::Capture::makeConstant(constant); in computeBlockInfo()
/external/clang/lib/Sema/
DSemaLambda.cpp920 for (auto C = Intro.Captures.begin(), E = Intro.Captures.end(); C != E; in ActOnStartOfLambdaDefinition()
1492 SmallVector<LambdaCapture, 4> Captures; in BuildLambdaExpr() local
1528 for (unsigned I = 0, N = LSI->Captures.size(); I != N; ++I, ++CurField) { in BuildLambdaExpr()
1529 LambdaScopeInfo::Capture From = LSI->Captures[I]; in BuildLambdaExpr()
1535 Captures.push_back( in BuildLambdaExpr()
1543 Captures.push_back( in BuildLambdaExpr()
1552 Captures.push_back(LambdaCapture(From.getLocation(), IsImplicit, Kind, in BuildLambdaExpr()
1572 if (Captures.empty() && CaptureDefault == LCD_None) in BuildLambdaExpr()
1597 Captures, in BuildLambdaExpr()
DSemaOpenMP.cpp3962 llvm::MapVector<Expr *, DeclRefExpr *> &Captures) const;
3965 llvm::MapVector<Expr *, DeclRefExpr *> &Captures) const;
3967 DeclRefExpr *BuildCounterVar(llvm::MapVector<Expr *, DeclRefExpr *> &Captures,
4374 llvm::MapVector<Expr *, DeclRefExpr *> &Captures) { in tryBuildCapture() argument
4381 auto I = Captures.find(Capture); in tryBuildCapture()
4382 if (I != Captures.end()) in tryBuildCapture()
4386 Captures[Capture] = Ref; in tryBuildCapture()
4393 llvm::MapVector<Expr *, DeclRefExpr *> &Captures) const { in BuildNumIterations()
4401 Expr *Upper = tryBuildCapture(SemaRef, UBExpr, Captures).get(); in BuildNumIterations()
4402 Expr *Lower = tryBuildCapture(SemaRef, LBExpr, Captures).get(); in BuildNumIterations()
[all …]
DSemaStmt.cpp3854 SmallVectorImpl<CapturedStmt::Capture> &Captures, in buildCapturedStmtCaptureList() argument
3862 Captures.push_back(CapturedStmt::Capture(Cap->getLocation(), in buildCapturedStmtCaptureList()
3867 Captures.push_back( in buildCapturedStmtCaptureList()
3873 Captures.push_back(CapturedStmt::Capture(Cap->getLocation(), in buildCapturedStmtCaptureList()
3980 SmallVector<CapturedStmt::Capture, 4> Captures; in ActOnCapturedRegionEnd() local
3982 buildCapturedStmtCaptureList(Captures, CaptureInits, RSI->Captures); in ActOnCapturedRegionEnd()
3989 Captures, CaptureInits, CD, RD); in ActOnCapturedRegionEnd()
/external/llvm/lib/Transforms/IPO/
DFunctionAttrs.cpp395 bool Captures = true; in determinePointerReadAttrs() local
398 Captures = false; in determinePointerReadAttrs()
401 if (Captures) in determinePointerReadAttrs()
443 Captures &= !CS.doesNotCapture(UseIndex); in determinePointerReadAttrs()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DFunctionAttrs.cpp440 bool Captures = true; in determinePointerReadAttrs() local
443 Captures = false; in determinePointerReadAttrs()
446 if (Captures) in determinePointerReadAttrs()
488 Captures &= !CS.doesNotCapture(UseIndex); in determinePointerReadAttrs()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DFunctionExtrasTest.cpp75 TEST(UniqueFunctionTest, Captures) { in TEST() argument
/external/clang/include/clang/AST/
DDeclCXX.h535 ManglingNumber(0), ContextDecl(nullptr), Captures(nullptr), in LambdaDefinitionData()
580 Capture *Captures; member
1069 void getCaptureFields(llvm::DenseMap<const VarDecl *, FieldDecl *> &Captures,
1079 return isLambda() ? getLambdaData().Captures : nullptr; in captures_begin()
DDecl.h3511 const Capture *Captures; variable
3523 SignatureAsWritten(nullptr), Captures(nullptr), NumCaptures(0), in BlockDecl()
3581 ArrayRef<Capture> captures() const { return {Captures, NumCaptures}; } in captures()
3595 void setCaptures(ASTContext &Context, ArrayRef<Capture> Captures,
DStmt.h2079 CapturedStmt(Stmt *S, CapturedRegionKind Kind, ArrayRef<Capture> Captures,
2098 ArrayRef<Capture> Captures,
DExprCXX.h1551 SourceLocation CaptureDefaultLoc, ArrayRef<LambdaCapture> Captures,
1589 ArrayRef<LambdaCapture> Captures, bool ExplicitParams,
/external/llvm/test/Transforms/SafeStack/
Dcall.ll142 ; Captures the argument -> unsafe
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/SafeStack/X86/
Dcall.ll142 ; Captures the argument -> unsafe
/external/easymock/src/org/easymock/
DEasyMock.java1461 reportMatcher(new Captures<T>(captured)); in capture()

12