Searched refs:NumCaptures (Results 1 – 12 of 12) sorted by relevance
/external/clang/lib/AST/ |
D | Stmt.cpp | 998 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 …]
|
D | ExprCXX.cpp | 864 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 …]
|
D | DeclCXX.cpp | 1080 for (const LambdaCapture *C = Lambda.Captures, *CEnd = C + Lambda.NumCaptures; in getCaptureFields()
|
D | Decl.cpp | 3890 this->NumCaptures = Captures.size(); in setCaptures()
|
/external/clang/include/clang/AST/ |
D | Stmt.h | 2069 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()
|
D | ExprCXX.h | 1513 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 …]
|
D | Decl.h | 3512 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()
|
D | DeclCXX.h | 534 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/ |
D | ASTReaderStmt.cpp | 1270 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()
|
D | ASTWriterStmt.cpp | 1240 Record.push_back(E->NumCaptures); in VisitLambdaExpr() 1243 NumArrayIndexVars = E->getArrayIndexStarts()[E->NumCaptures]; in VisitLambdaExpr() 1262 E->getArrayIndexStarts() + E->NumCaptures + 1); in VisitLambdaExpr()
|
D | ASTReaderDecl.cpp | 1525 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()
|
D | ASTWriter.cpp | 5539 Record->push_back(Lambda.NumCaptures); in AddCXXDefinitionData() 5544 for (unsigned I = 0, N = Lambda.NumCaptures; I != N; ++I) { in AddCXXDefinitionData()
|