/external/regex-re2/re2/testing/ |
D | regexp_test.cc | 48 EXPECT_EQ(4, x->NumCaptures()); in TEST() 67 EXPECT_EQ(4, x->NumCaptures()); in TEST()
|
D | tester.cc | 186 num_captures_ = regexp_->NumCaptures(); in TestInstance()
|
/external/clang/lib/AST/ |
D | ExprCXX.cpp | 942 NumCaptures(Captures.size()), in LambdaExpr() 956 Data.NumCaptures = NumCaptures; in LambdaExpr() 958 Data.Captures = (Capture *)Context.Allocate(sizeof(Capture) * NumCaptures); in LambdaExpr() 978 assert(ArrayIndexStarts.size() == NumCaptures); in LambdaExpr() 1020 unsigned NumCaptures, in CreateDeserialized() argument 1022 unsigned Size = sizeof(LambdaExpr) + sizeof(Stmt *) * (NumCaptures + 1); in CreateDeserialized() 1025 + sizeof(unsigned) * (NumCaptures + 1); in CreateDeserialized() 1027 return new (Mem) LambdaExpr(EmptyShell(), NumCaptures, NumArrayIndexVars > 0); in CreateDeserialized() 1035 return capture_begin() + NumCaptures; in capture_end() 1073 assert(Index < getLambdaClass()->getLambdaData().NumCaptures && in getCaptureInitIndexVars() [all …]
|
D | Stmt.cpp | 1072 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (NumCaptures + 1); in getStoredCaptures() 1088 : Stmt(CapturedStmtClass), NumCaptures(Captures.size()), in CapturedStmt() 1096 for (unsigned I = 0, N = NumCaptures; I != N; ++I) in CapturedStmt() 1107 CapturedStmt::CapturedStmt(EmptyShell Empty, unsigned NumCaptures) in CapturedStmt() argument 1108 : Stmt(CapturedStmtClass, Empty), NumCaptures(NumCaptures), in CapturedStmt() 1110 getStoredStmts()[NumCaptures] = nullptr; in CapturedStmt() 1142 unsigned NumCaptures) { in CreateDeserialized() argument 1143 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (NumCaptures + 1); in CreateDeserialized() 1144 if (NumCaptures > 0) { in CreateDeserialized() 1147 Size += sizeof(Capture) * NumCaptures; in CreateDeserialized() [all …]
|
D | Decl.cpp | 3751 NumCaptures = 0; in setCaptures() 3756 NumCaptures = end - begin; in setCaptures() 3760 size_t allocationSize = NumCaptures * sizeof(Capture); in setCaptures()
|
D | DeclCXX.cpp | 1030 for (const LambdaCapture *C = Lambda.Captures, *CEnd = C + Lambda.NumCaptures; in getCaptureFields()
|
/external/clang/include/clang/AST/ |
D | ExprCXX.h | 1351 unsigned NumCaptures : 16; variable 1398 LambdaExpr(EmptyShell Empty, unsigned NumCaptures, bool HasArrayIndexVars) in LambdaExpr() argument 1400 NumCaptures(NumCaptures), CaptureDefault(LCD_None), ExplicitParams(false), in LambdaExpr() 1402 getStoredStmts()[NumCaptures] = nullptr; in LambdaExpr() 1412 return reinterpret_cast<unsigned *>(getStoredStmts() + NumCaptures + 1); in getArrayIndexStarts() 1418 sizeof(unsigned) * (NumCaptures + 1), llvm::alignOf<VarDecl *>()); in getArrayIndexVars() 1442 unsigned NumCaptures, 1473 unsigned capture_size() const { return NumCaptures; } in capture_size() 1516 return capture_init_begin() + NumCaptures; in capture_init_end() 1573 return child_range(getStoredStmts(), getStoredStmts() + NumCaptures + 1); in children()
|
D | Stmt.h | 2058 unsigned NumCaptures; 2072 CapturedStmt(EmptyShell Empty, unsigned NumCaptures); 2080 void setCapturedStmt(Stmt *S) { getStoredStmts()[NumCaptures] = S; } in setCapturedStmt() 2090 unsigned NumCaptures); 2093 Stmt *getCapturedStmt() { return getStoredStmts()[NumCaptures]; } in getCapturedStmt() 2152 return getStoredCaptures() + NumCaptures; in capture_end() 2156 unsigned capture_size() const { return NumCaptures; } in capture_size() 2174 return capture_init_begin() + NumCaptures; in capture_init_end()
|
D | Decl.h | 3433 unsigned NumCaptures; variable 3444 SignatureAsWritten(nullptr), Captures(nullptr), NumCaptures(0), in BlockDecl() 3506 bool hasCaptures() const { return NumCaptures != 0 || CapturesCXXThis; } in hasCaptures() 3510 unsigned getNumCaptures() const { return NumCaptures; } in getNumCaptures() 3525 capture_iterator capture_end() { return Captures + NumCaptures; } in capture_end() 3527 capture_const_iterator capture_end() const { return Captures + NumCaptures; } in capture_end()
|
D | DeclCXX.h | 537 CaptureDefault(CaptureDefault), NumCaptures(0), NumExplicitCaptures(0), in LambdaDefinitionData() 566 unsigned NumCaptures : 15; member 1077 return isLambda() ? captures_begin() + getLambdaData().NumCaptures in captures_end()
|
/external/regex-re2/re2/ |
D | regexp.h | 366 int NumCaptures();
|
D | regexp.cc | 523 int Regexp::NumCaptures() { in NumCaptures() function in re2::Regexp
|
D | re2.cc | 894 num_captures_ = suffix_regexp_->NumCaptures(); in NumberOfCapturingGroups()
|
/external/clang/lib/Serialization/ |
D | ASTReaderStmt.cpp | 1213 unsigned NumCaptures = Record[Idx++]; in VisitLambdaExpr() local 1214 assert(NumCaptures == E->NumCaptures);(void)NumCaptures; in VisitLambdaExpr() 1232 for (unsigned I = 0; I != NumCaptures + 1; ++I) in VisitLambdaExpr() 3030 unsigned NumCaptures = Record[ASTStmtReader::NumExprFields]; in ReadStmtFromStream() local 3032 S = LambdaExpr::CreateDeserialized(Context, NumCaptures, in ReadStmtFromStream()
|
D | ASTWriterStmt.cpp | 1174 Record.push_back(E->NumCaptures); in VisitLambdaExpr() 1177 NumArrayIndexVars = E->getArrayIndexStarts()[E->NumCaptures]; in VisitLambdaExpr() 1196 E->getArrayIndexStarts() + E->NumCaptures + 1); in VisitLambdaExpr()
|
D | ASTReaderDecl.cpp | 1354 Lambda.NumCaptures = Record[Idx++]; in ReadCXXDefinitionData() 1359 = (Capture*)Reader.Context.Allocate(sizeof(Capture)*Lambda.NumCaptures); in ReadCXXDefinitionData() 1362 for (unsigned I = 0, N = Lambda.NumCaptures; I != N; ++I) { in ReadCXXDefinitionData()
|
D | ASTWriter.cpp | 5709 Record.push_back(Lambda.NumCaptures); in AddCXXDefinitionData() 5714 for (unsigned I = 0, N = Lambda.NumCaptures; I != N; ++I) { in AddCXXDefinitionData()
|