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

Function c_resolve_template_param

internal/cbm/lsp/c_lsp.c:507–516  ·  view source on GitHub ↗

Resolve a template type parameter using defaults from current template scope

Source from the content-addressed store, hash-verified

505
506// Resolve a template type parameter using defaults from current template scope
507static const CBMType *c_resolve_template_param(CLSPContext *ctx, const char *param_name) {
508 if (!param_name || !ctx->template_param_names)
509 return NULL;
510 for (int i = 0; i < ctx->template_param_count; i++) {
511 if (ctx->template_param_names[i] && strcmp(ctx->template_param_names[i], param_name) == 0) {
512 return ctx->template_param_defaults[i]; // may be NULL if no default
513 }
514 }
515 return NULL;
516}
517
518// --- Helper: resolve namespace alias ---
519static const char *c_resolve_ns_alias(CLSPContext *ctx, const char *name) {

Callers 2

c_simplify_typeFunction · 0.85
c_eval_expr_type_innerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected