Resolve a template type parameter using defaults from current template scope
| 505 | |
| 506 | // Resolve a template type parameter using defaults from current template scope |
| 507 | static 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 --- |
| 519 | static const char *c_resolve_ns_alias(CLSPContext *ctx, const char *name) { |
no outgoing calls
no test coverage detected