* The failed C++ calls and function values with a qualifier outside `std` * (`Txn::Put`, `T::T/2`), calls on a variable (`shard.Clear`), and what * values are constructed as, which may go through a template parameter * (cpp-template-instantiations.ts), of the files named, one at a time: the
(files: readonly string[])
| 4588 | * left unresolved is nearly all of it, and the index on status only adds pages.) |
| 4589 | */ |
| 4590 | *iterateFailedCppTypeReferences(files: readonly string[]): IterableIterator<UnresolvedReference> { |
| 4591 | const rows = this.db.prepare( |
| 4592 | `SELECT from_node_id, reference_name, reference_kind, line, col, file_path FROM unresolved_refs |
| 4593 | WHERE +status = 'failed' AND language = 'cpp' AND file_path IN (SELECT value FROM json_each(?)) |
| 4594 | AND (reference_kind = 'instantiates' |
| 4595 | OR (reference_kind IN ('calls', 'function_ref') AND reference_name GLOB '*::*' AND reference_name NOT GLOB 'std::*') |
| 4596 | OR (reference_kind = 'calls' AND reference_name GLOB '*.*' AND reference_name NOT GLOB '*(*'))` |
| 4597 | ).iterate(JSON.stringify(files)) as IterableIterator<Pick<UnresolvedRefRow, 'from_node_id' | 'reference_name' | 'reference_kind' | 'line' | 'col' | 'file_path'>>; |
| 4598 | for (const row of rows) { |
| 4599 | yield { |
| 4600 | fromNodeId: row.from_node_id, |
| 4601 | referenceName: row.reference_name, |
| 4602 | referenceKind: row.reference_kind as EdgeKind, |
| 4603 | line: row.line, |
| 4604 | column: row.col, |
| 4605 | filePath: row.file_path, |
| 4606 | language: 'cpp', |
| 4607 | }; |
| 4608 | } |
| 4609 | // The walk reads the whole table, which would stay in this connection's page |
| 4610 | // cache through the end of synthesis, where an index peaks in memory. |
| 4611 | this.db.exec('PRAGMA shrink_memory'); |
| 4612 | } |
| 4613 | |
| 4614 | /** |
| 4615 | * Get the count of PENDING (never-attempted) references without loading |
no test coverage detected