/external/clang/lib/AST/ |
D | Stmt.cpp | 976 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (NumCaptures + 1); in getStoredCaptures() 992 : Stmt(CapturedStmtClass), NumCaptures(Captures.size()), in CapturedStmt() 1000 for (unsigned I = 0, N = NumCaptures; I != N; ++I) in CapturedStmt() 1011 CapturedStmt::CapturedStmt(EmptyShell Empty, unsigned NumCaptures) in CapturedStmt() argument 1012 : Stmt(CapturedStmtClass, Empty), NumCaptures(NumCaptures), in CapturedStmt() 1014 getStoredStmts()[NumCaptures] = nullptr; in CapturedStmt() 1046 unsigned NumCaptures) { in CreateDeserialized() argument 1047 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (NumCaptures + 1); in CreateDeserialized() 1048 if (NumCaptures > 0) { in CreateDeserialized() 1051 Size += sizeof(Capture) * NumCaptures; in CreateDeserialized() [all …]
|
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() 1040 return capture_begin() + NumCaptures; in capture_end() 1078 assert(Index < getLambdaClass()->getLambdaData().NumCaptures && in getCaptureInitIndexVars() [all …]
|
D | DeclCXX.cpp | 1024 for (const LambdaCapture *C = Lambda.Captures, *CEnd = C + Lambda.NumCaptures; in getCaptureFields()
|
D | Decl.cpp | 3764 this->NumCaptures = Captures.size(); in setCaptures()
|
/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/include/clang/AST/ |
D | Stmt.h | 2050 unsigned NumCaptures; 2064 CapturedStmt(EmptyShell Empty, unsigned NumCaptures); 2074 void setCapturedStmt(Stmt *S) { getStoredStmts()[NumCaptures] = S; } in setCapturedStmt() 2084 unsigned NumCaptures); 2087 Stmt *getCapturedStmt() { return getStoredStmts()[NumCaptures]; } in getCapturedStmt() 2088 const Stmt *getCapturedStmt() const { return getStoredStmts()[NumCaptures]; } in getCapturedStmt() 2144 return getStoredCaptures() + NumCaptures; in capture_end() 2148 unsigned capture_size() const { return NumCaptures; } in capture_size() 2180 return capture_init_begin() + NumCaptures; in capture_init_end() 2184 return capture_init_begin() + NumCaptures; in capture_init_end()
|
D | ExprCXX.h | 1426 unsigned NumCaptures : 16; variable 1473 LambdaExpr(EmptyShell Empty, unsigned NumCaptures, bool HasArrayIndexVars) in LambdaExpr() argument 1475 NumCaptures(NumCaptures), CaptureDefault(LCD_None), ExplicitParams(false), in LambdaExpr() 1477 getStoredStmts()[NumCaptures] = nullptr; in LambdaExpr() 1489 return reinterpret_cast<unsigned *>(getStoredStmts() + NumCaptures + 1); in getArrayIndexStarts() 1493 return reinterpret_cast<const unsigned *>(getStoredStmts() + NumCaptures + in getArrayIndexStarts() 1500 sizeof(unsigned) * (NumCaptures + 1), llvm::alignOf<VarDecl *>()); in getArrayIndexVars() 1507 sizeof(unsigned) * (NumCaptures + 1), llvm::alignOf<VarDecl *>()); in getArrayIndexVars() 1531 unsigned NumCaptures, 1565 unsigned capture_size() const { return NumCaptures; } in capture_size() [all …]
|
D | Decl.h | 3491 unsigned NumCaptures; variable 3502 SignatureAsWritten(nullptr), Captures(nullptr), NumCaptures(0), in BlockDecl() 3564 bool hasCaptures() const { return NumCaptures != 0 || CapturesCXXThis; } in hasCaptures() 3568 unsigned getNumCaptures() const { return NumCaptures; } in getNumCaptures() 3583 capture_iterator capture_end() { return Captures + NumCaptures; } in capture_end() 3585 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 | 1254 unsigned NumCaptures = Record[Idx++]; in VisitLambdaExpr() local 1255 assert(NumCaptures == E->NumCaptures);(void)NumCaptures; in VisitLambdaExpr() 1273 for (unsigned I = 0; I != NumCaptures + 1; ++I) in VisitLambdaExpr() 3335 unsigned NumCaptures = Record[ASTStmtReader::NumExprFields]; in ReadStmtFromStream() local 3337 S = LambdaExpr::CreateDeserialized(Context, NumCaptures, in ReadStmtFromStream()
|
D | ASTWriterStmt.cpp | 1218 Record.push_back(E->NumCaptures); in VisitLambdaExpr() 1221 NumArrayIndexVars = E->getArrayIndexStarts()[E->NumCaptures]; in VisitLambdaExpr() 1240 E->getArrayIndexStarts() + E->NumCaptures + 1); in VisitLambdaExpr()
|
D | ASTReaderDecl.cpp | 1454 Lambda.NumCaptures = Record[Idx++]; in ReadCXXDefinitionData() 1459 = (Capture*)Reader.Context.Allocate(sizeof(Capture)*Lambda.NumCaptures); in ReadCXXDefinitionData() 1462 for (unsigned I = 0, N = Lambda.NumCaptures; I != N; ++I) { in ReadCXXDefinitionData()
|
D | ASTWriter.cpp | 5543 Record.push_back(Lambda.NumCaptures); in AddCXXDefinitionData() 5548 for (unsigned I = 0, N = Lambda.NumCaptures; I != N; ++I) { in AddCXXDefinitionData()
|