Home
last modified time | relevance | path

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

12

/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()
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/testing/
Dregexp_test.cc53 EXPECT_EQ(4, x->NumCaptures()); in TEST()
72 EXPECT_EQ(4, x->NumCaptures()); in TEST()
Dtester.cc196 num_captures_ = regexp_->NumCaptures(); in TestInstance()
/external/llvm-project/clang/lib/AST/
DStmt.cpp1296 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (NumCaptures + 1); in getStoredCaptures()
1311 : Stmt(CapturedStmtClass), NumCaptures(Captures.size()), in CapturedStmt()
1319 for (unsigned I = 0, N = NumCaptures; I != N; ++I) in CapturedStmt()
1330 CapturedStmt::CapturedStmt(EmptyShell Empty, unsigned NumCaptures) in CapturedStmt() argument
1331 : Stmt(CapturedStmtClass, Empty), NumCaptures(NumCaptures), in CapturedStmt()
1333 getStoredStmts()[NumCaptures] = nullptr; in CapturedStmt()
1365 unsigned NumCaptures) { in CreateDeserialized() argument
1366 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (NumCaptures + 1); in CreateDeserialized()
1367 if (NumCaptures > 0) { in CreateDeserialized()
1370 Size += sizeof(Capture) * NumCaptures; in CreateDeserialized()
[all …]
DExprCXX.cpp1131 LambdaExprBits.NumCaptures = CaptureInits.size(); in LambdaExpr()
1152 LambdaExpr::LambdaExpr(EmptyShell Empty, unsigned NumCaptures) in LambdaExpr() argument
1154 LambdaExprBits.NumCaptures = NumCaptures; in LambdaExpr()
1158 getStoredStmts()[NumCaptures] = nullptr; // Not one past the end. in LambdaExpr()
1182 unsigned NumCaptures) { in CreateDeserialized() argument
1183 unsigned Size = totalSizeToAlloc<Stmt *>(NumCaptures + 1); in CreateDeserialized()
1185 return new (Mem) LambdaExpr(EmptyShell(), NumCaptures); in CreateDeserialized()
DDeclCXX.cpp1423 Data.NumCaptures = Captures.size(); in setCaptures()
1552 for (const LambdaCapture *C = Lambda.Captures, *CEnd = C + Lambda.NumCaptures; in getCaptureFields()
/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/llvm-project/clang/include/clang/AST/
DStmt.h952 unsigned NumCaptures : 16; variable
3529 unsigned NumCaptures;
3543 CapturedStmt(EmptyShell Empty, unsigned NumCaptures);
3553 void setCapturedStmt(Stmt *S) { getStoredStmts()[NumCaptures] = S; } in setCapturedStmt()
3565 unsigned NumCaptures);
3568 Stmt *getCapturedStmt() { return getStoredStmts()[NumCaptures]; } in getCapturedStmt()
3569 const Stmt *getCapturedStmt() const { return getStoredStmts()[NumCaptures]; } in getCapturedStmt()
3616 return getStoredCaptures() + NumCaptures; in capture_end()
3620 unsigned capture_size() const { return NumCaptures; } in capture_size()
3652 return capture_init_begin() + NumCaptures; in capture_init_end()
[all …]
DDeclCXX.h386 unsigned NumCaptures : 15; member
414 CaptureDefault(CaptureDefault), NumCaptures(0), in LambdaDefinitionData()
1062 return isLambda() ? captures_begin() + getLambdaData().NumCaptures in captures_end()
1066 unsigned capture_size() const { return getLambdaData().NumCaptures; } in capture_size()
DDecl.h4155 unsigned NumCaptures = 0; variable
4213 bool hasCaptures() const { return NumCaptures || capturesCXXThis(); } in hasCaptures()
4217 unsigned getNumCaptures() const { return NumCaptures; } in getNumCaptures()
4221 ArrayRef<Capture> captures() const { return {Captures, NumCaptures}; } in captures()
DExprCXX.h1883 LambdaExpr(EmptyShell Empty, unsigned NumCaptures);
1906 unsigned NumCaptures);
1937 unsigned capture_size() const { return LambdaExprBits.NumCaptures; } in capture_size()
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/
Dregexp.h374 int NumCaptures();
Dregexp.cc560 int Regexp::NumCaptures() { in NumCaptures() function in re2::Regexp
Dre2.cc233 num_captures_ = suffix_regexp_->NumCaptures(); in Init()
/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()
/external/llvm-project/clang/lib/Serialization/
DASTReaderStmt.cpp1724 unsigned NumCaptures = Record.readInt(); in VisitLambdaExpr() local
1725 (void)NumCaptures; in VisitLambdaExpr()
1726 assert(NumCaptures == E->LambdaExprBits.NumCaptures); in VisitLambdaExpr()
3755 unsigned NumCaptures = Record[ASTStmtReader::NumExprFields]; in ReadStmtFromStream() local
3756 S = LambdaExpr::CreateDeserialized(Context, NumCaptures); in ReadStmtFromStream()
DASTReaderDecl.cpp1747 Lambda.NumCaptures = Record.readInt(); in ReadCXXDefinitionData()
1753 sizeof(Capture) * Lambda.NumCaptures); in ReadCXXDefinitionData()
1756 for (unsigned I = 0, N = Lambda.NumCaptures; I != N; ++I) { in ReadCXXDefinitionData()

12