MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / doclink_taken

Function doclink_taken

internal/cbm/doclink.c:474–482  ·  view source on GitHub ↗

True when a doc taken from a definition, or the file's own doc, starts on * one of the lines [first, last]. */

Source from the content-addressed store, hash-verified

472/* True when a doc taken from a definition, or the file's own doc, starts on
473 * one of the lines [first, last]. */
474static 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected