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

Function unwrap_template_inner

internal/cbm/extract_defs.c:2980–2986  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2978
2979// For C++/CUDA template_declaration, find the inner function_definition or declaration.
2980static TSNode unwrap_template_inner(TSNode node, CBMLanguage lang) {
2981 TSNode inner = find_cpp_template_inner_node(node, lang);
2982 if (!ts_node_is_null(inner)) {
2983 return inner;
2984 }
2985 return node;
2986}
2987
2988// C/C++/CUDA/GLSL: parameters live on function_declarator inside declarator chain.
2989static TSNode find_c_params(TSNode func_node) {

Callers 1

extract_func_defFunction · 0.85

Calls 1

Tested by

no test coverage detected