Searched refs:NumCaptures (Results 1 – 12 of 12) sorted by relevance
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | Stmt.cpp | 1312 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (NumCaptures + 1); in getStoredCaptures() 1327 : Stmt(CapturedStmtClass), NumCaptures(Captures.size()), in CapturedStmt() 1335 for (unsigned I = 0, N = NumCaptures; I != N; ++I) in CapturedStmt() 1346 CapturedStmt::CapturedStmt(EmptyShell Empty, unsigned NumCaptures) in CapturedStmt() argument 1347 : Stmt(CapturedStmtClass, Empty), NumCaptures(NumCaptures), in CapturedStmt() 1349 getStoredStmts()[NumCaptures] = nullptr; in CapturedStmt() 1353 for (unsigned I = 0, N = NumCaptures; I != N; ++I) in CapturedStmt() 1386 unsigned NumCaptures) { in CreateDeserialized() argument 1387 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (NumCaptures + 1); in CreateDeserialized() 1388 if (NumCaptures > 0) { in CreateDeserialized() [all …]
|
H A D | ExprCXX.cpp | 1264 LambdaExprBits.NumCaptures = CaptureInits.size(); in LambdaExpr() 1285 LambdaExpr::LambdaExpr(EmptyShell Empty, unsigned NumCaptures) in LambdaExpr() argument 1287 LambdaExprBits.NumCaptures = NumCaptures; in LambdaExpr() 1291 getStoredStmts()[NumCaptures] = nullptr; // Not one past the end. in LambdaExpr() 1315 unsigned NumCaptures) { in CreateDeserialized() argument 1316 unsigned Size = totalSizeToAlloc<Stmt *>(NumCaptures + 1); in CreateDeserialized() 1318 return new (Mem) LambdaExpr(EmptyShell(), NumCaptures); in CreateDeserialized()
|
H A D | DeclCXX.cpp | 1558 Data.NumCaptures = Captures.size(); in setCaptures() 1689 for (const LambdaCapture *C = List, *CEnd = C + Lambda.NumCaptures; in getCaptureFields()
|
H A D | Decl.cpp | 5231 this->NumCaptures = Captures.size(); in setCaptures()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | Stmt.h | 1140 unsigned NumCaptures : 16; 3827 unsigned NumCaptures; 3841 CapturedStmt(EmptyShell Empty, unsigned NumCaptures); 3851 void setCapturedStmt(Stmt *S) { getStoredStmts()[NumCaptures] = S; } 3863 unsigned NumCaptures); 3866 Stmt *getCapturedStmt() { return getStoredStmts()[NumCaptures]; } 3867 const Stmt *getCapturedStmt() const { return getStoredStmts()[NumCaptures]; } 3914 return getStoredCaptures() + NumCaptures; 3918 unsigned capture_size() const { return NumCaptures; } 3950 return capture_init_begin() + NumCaptures; [all …]
|
H A D | DeclCXX.h | 406 unsigned NumCaptures : 15; member 441 CaptureDefault(CaptureDefault), NumCaptures(0), in LambdaDefinitionData() 1112 return isLambda() ? captures_begin() + getLambdaData().NumCaptures in captures_end() 1116 unsigned capture_size() const { return getLambdaData().NumCaptures; } in capture_size()
|
H A D | Decl.h | 4528 unsigned NumCaptures = 0; variable 4586 bool hasCaptures() const { return NumCaptures || capturesCXXThis(); } in hasCaptures() 4590 unsigned getNumCaptures() const { return NumCaptures; } in getNumCaptures() 4594 ArrayRef<Capture> captures() const { return {Captures, NumCaptures}; } in captures()
|
H A D | ExprCXX.h | 1981 LambdaExpr(EmptyShell Empty, unsigned NumCaptures); 2004 unsigned NumCaptures); 2035 unsigned capture_size() const { return LambdaExprBits.NumCaptures; } in capture_size()
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTReaderDecl.cpp | 2011 Lambda.NumCaptures = LambdaBits.getNextBits(/*Width=*/15); in ReadCXXDefinitionData() 2021 if (Lambda.NumCaptures) { in ReadCXXDefinitionData() 2023 Lambda.NumCaptures); in ReadCXXDefinitionData() 2027 for (unsigned I = 0, N = Lambda.NumCaptures; I != N; ++I) { in ReadCXXDefinitionData() 2119 DetectedOdrViolation |= Lambda1.NumCaptures != Lambda2.NumCaptures; in MergeDefinitionData() 2126 if (Lambda1.NumCaptures && Lambda1.NumCaptures == Lambda2.NumCaptures) { in MergeDefinitionData() 2127 for (unsigned I = 0, N = Lambda1.NumCaptures; I != N; ++I) { in MergeDefinitionData()
|
H A D | ASTReaderStmt.cpp | 1763 unsigned NumCaptures = Record.readInt(); in VisitLambdaExpr() local 1764 (void)NumCaptures; in VisitLambdaExpr() 1765 assert(NumCaptures == E->LambdaExprBits.NumCaptures); in VisitLambdaExpr() 4243 unsigned NumCaptures = Record[ASTStmtReader::NumExprFields]; in ReadStmtFromStream() local 4244 S = LambdaExpr::CreateDeserialized(Context, NumCaptures); in ReadStmtFromStream()
|
H A D | ASTWriterStmt.cpp | 1746 Record.push_back(E->LambdaExprBits.NumCaptures); in VisitLambdaExpr()
|
H A D | ASTWriter.cpp | 6622 LambdaBits.addBits(Lambda.NumCaptures, /*Width=*/15); in AddCXXDefinitionData() 6632 for (unsigned I = 0, N = Lambda.NumCaptures; I != N; ++I) { in AddCXXDefinitionData()
|