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

Function unwrap_template_inner

internal/cbm/extract_defs.c:3369–3375  ·  view source on GitHub ↗

For C++/CUDA template_declaration, find the inner function_definition or declaration.

Source from the content-addressed store, hash-verified

3367
3368// For C++/CUDA template_declaration, find the inner function_definition or declaration.
3369static TSNode unwrap_template_inner(TSNode node, CBMLanguage lang) {
3370 TSNode inner = find_cpp_template_inner_node(node, lang);
3371 if (!ts_node_is_null(inner)) {
3372 return inner;
3373 }
3374 return node;
3375}
3376
3377// C/C++/CUDA/GLSL: parameters live on function_declarator inside declarator chain.
3378static TSNode find_c_params(TSNode func_node) {

Callers 1

extract_func_defFunction · 0.85

Calls 1

Tested by

no test coverage detected