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

Function tm_rule

src/mcp/test_impact.c:677–685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

675}
676
677static const cbm_test_declaration_t *tm_rule(const tm_scan_t *sc, int index,
678 int *declaration_index) {
679 if (index < sc->m->declaration_count) {
680 *declaration_index = index;
681 return &sc->m->declarations[index];
682 }
683 *declaration_index = -1;
684 return &tm_cbm_rules[index - sc->m->declaration_count];
685}
686
687static bool tm_rule_matches(const tm_scan_t *sc, const cbm_test_declaration_t *rule,
688 const tm_tok_t *tok, bool *perf) {

Callers 3

tm_invocation_parseFunction · 0.85
tm_descriptor_identFunction · 0.85
tm_descriptor_macro_bodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected