Home
last modified time | relevance | path

Searched refs:NumCaptures (Results 1 – 12 of 12) sorted by relevance

/external/clang/lib/AST/
DStmt.cpp998 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (NumCaptures + 1); in getStoredCaptures()
1013 : Stmt(CapturedStmtClass), NumCaptures(Captures.size()), in CapturedStmt()
1021 for (unsigned I = 0, N = NumCaptures; I != N; ++I) in CapturedStmt()
1032 CapturedStmt::CapturedStmt(EmptyShell Empty, unsigned NumCaptures) in CapturedStmt() argument
1033 : Stmt(CapturedStmtClass, Empty), NumCaptures(NumCaptures), in CapturedStmt()
1035 getStoredStmts()[NumCaptures] = nullptr; in CapturedStmt()
1067 unsigned NumCaptures) { in CreateDeserialized() argument
1068 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (NumCaptures + 1); in CreateDeserialized()
1069 if (NumCaptures > 0) { in CreateDeserialized()
1072 Size += sizeof(Capture) * NumCaptures; in CreateDeserialized()
[all …]
DExprCXX.cpp864 NumCaptures(Captures.size()), CaptureDefault(CaptureDefault), in LambdaExpr()
875 Data.NumCaptures = NumCaptures; in LambdaExpr()
878 (LambdaCapture *)Context.Allocate(sizeof(LambdaCapture) * NumCaptures); in LambdaExpr()
898 assert(ArrayIndexStarts.size() == NumCaptures); in LambdaExpr()
930 unsigned NumCaptures, in CreateDeserialized() argument
933 NumCaptures + 1, NumArrayIndexVars ? NumCaptures + 1 : 0, in CreateDeserialized()
936 return new (Mem) LambdaExpr(EmptyShell(), NumCaptures, NumArrayIndexVars > 0); in CreateDeserialized()
949 return capture_begin() + NumCaptures; in capture_end()
987 assert(Index < getLambdaClass()->getLambdaData().NumCaptures && in getCaptureInitIndexVars()
1014 if (!getStoredStmts()[NumCaptures]) in getBody()
[all …]
DDeclCXX.cpp1080 for (const LambdaCapture *C = Lambda.Captures, *CEnd = C + Lambda.NumCaptures; in getCaptureFields()
DDecl.cpp3890 this->NumCaptures = Captures.size(); in setCaptures()
/external/clang/include/clang/AST/
DStmt.h2069 unsigned NumCaptures;
2083 CapturedStmt(EmptyShell Empty, unsigned NumCaptures);
2093 void setCapturedStmt(Stmt *S) { getStoredStmts()[NumCaptures] = S; } in setCapturedStmt()
2103 unsigned NumCaptures);
2106 Stmt *getCapturedStmt() { return getStoredStmts()[NumCaptures]; } in getCapturedStmt()
2107 const Stmt *getCapturedStmt() const { return getStoredStmts()[NumCaptures]; } in getCapturedStmt()
2154 return getStoredCaptures() + NumCaptures; in capture_end()
2158 unsigned capture_size() const { return NumCaptures; } in capture_size()
2190 return capture_init_begin() + NumCaptures; in capture_init_end()
2194 return capture_init_begin() + NumCaptures; in capture_init_end()
DExprCXX.h1513 unsigned NumCaptures : 16; variable
1541 return NumCaptures + 1; in numTrailingObjects()
1545 return HasArrayIndexVars ? NumCaptures + 1 : 0; in numTrailingObjects()
1558 LambdaExpr(EmptyShell Empty, unsigned NumCaptures, bool HasArrayIndexVars) in LambdaExpr() argument
1560 NumCaptures(NumCaptures), CaptureDefault(LCD_None), ExplicitParams(false), in LambdaExpr()
1562 getStoredStmts()[NumCaptures] = nullptr; in LambdaExpr()
1598 unsigned NumCaptures,
1632 unsigned capture_size() const { return NumCaptures; } in capture_size()
1689 return capture_init_begin() + NumCaptures; in capture_init_end()
1695 return capture_init_begin() + NumCaptures; in capture_init_end()
[all …]
DDecl.h3512 unsigned NumCaptures; variable
3523 SignatureAsWritten(nullptr), Captures(nullptr), NumCaptures(0), in BlockDecl()
3573 bool hasCaptures() const { return NumCaptures != 0 || CapturesCXXThis; } in hasCaptures()
3577 unsigned getNumCaptures() const { return NumCaptures; } in getNumCaptures()
3581 ArrayRef<Capture> captures() const { return {Captures, NumCaptures}; } in captures()
DDeclCXX.h534 CaptureDefault(CaptureDefault), NumCaptures(0), NumExplicitCaptures(0), in LambdaDefinitionData()
563 unsigned NumCaptures : 15; member
1082 return isLambda() ? captures_begin() + getLambdaData().NumCaptures in captures_end()
/external/clang/lib/Serialization/
DASTReaderStmt.cpp1270 unsigned NumCaptures = Record[Idx++]; in VisitLambdaExpr() local
1271 assert(NumCaptures == E->NumCaptures);(void)NumCaptures; in VisitLambdaExpr()
1289 for (unsigned I = 0; I != NumCaptures + 1; ++I) in VisitLambdaExpr()
3695 unsigned NumCaptures = Record[ASTStmtReader::NumExprFields]; in ReadStmtFromStream() local
3697 S = LambdaExpr::CreateDeserialized(Context, NumCaptures, in ReadStmtFromStream()
DASTWriterStmt.cpp1240 Record.push_back(E->NumCaptures); in VisitLambdaExpr()
1243 NumArrayIndexVars = E->getArrayIndexStarts()[E->NumCaptures]; in VisitLambdaExpr()
1262 E->getArrayIndexStarts() + E->NumCaptures + 1); in VisitLambdaExpr()
DASTReaderDecl.cpp1525 Lambda.NumCaptures = Record[Idx++]; in ReadCXXDefinitionData()
1530 = (Capture*)Reader.Context.Allocate(sizeof(Capture)*Lambda.NumCaptures); in ReadCXXDefinitionData()
1533 for (unsigned I = 0, N = Lambda.NumCaptures; I != N; ++I) { in ReadCXXDefinitionData()
DASTWriter.cpp5539 Record->push_back(Lambda.NumCaptures); in AddCXXDefinitionData()
5544 for (unsigned I = 0, N = Lambda.NumCaptures; I != N; ++I) { in AddCXXDefinitionData()