True when a doc taken from a definition, or the file's own doc, starts on * one of the lines [first, last]. */
| 472 | /* True when a doc taken from a definition, or the file's own doc, starts on |
| 473 | * one of the lines [first, last]. */ |
| 474 | static bool doclink_taken(const CBMExtractCtx *ctx, uint32_t first, uint32_t last) { |
| 475 | const doc_line_map_t *m = (const doc_line_map_t *)ctx->doc_lines; |
| 476 | for (int i = 0; m && i < m->count; i++) { |
| 477 | if (m->items[i].parsed && m->items[i].line >= first && m->items[i].line <= last) { |
| 478 | return true; |
| 479 | } |
| 480 | } |
| 481 | return false; |
| 482 | } |
| 483 | |
| 484 | /* The file's own doc, then the language's loose docs. The parser gets a |
| 485 | * definition-shaped stand-in for the file; what it pushes with the stand-in |
nothing calls this directly
no outgoing calls
no test coverage detected