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

Function cpp_recv_edge_kind

tests/test_pipeline.c:23289–23299  ·  view source on GitHub ↗

1 = an lsp_* CALLS edge, 0 = no edge, -1 = an edge from a name heuristic. */

Source from the content-addressed store, hash-verified

23287
23288/* 1 = an lsp_* CALLS edge, 0 = no edge, -1 = an edge from a name heuristic. */
23289static int cpp_recv_edge_kind(const CppRecvRun *r, bool parallel, const char *caller,
23290 const char *target) {
23291 char *props = cpp_recv_calls(r, caller, target);
23292 int kind = props ? (strstr(props, "\"strategy\":\"lsp_") ? 1 : -1) : 0;
23293 if (kind != 1) {
23294 printf(" [%s] %s -> %s: %s\n", parallel ? "parallel" : "sequential", caller, target,
23295 props ? props : "(no CALLS edge)");
23296 }
23297 free(props);
23298 return kind;
23299}
23300
23301/* Reported shape: a raw pointer from a singleton accessor. */
23302TEST(pipeline_cpp_static_factory_pointer_receiver_issue1153) {

Callers 1

test_pipeline.cFile · 0.85

Calls 1

cpp_recv_callsFunction · 0.85

Tested by

no test coverage detected