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

Function is_c_include_container

internal/cbm/extract_imports.c:1164–1169  ·  view source on GitHub ↗

Node kinds that only group file-level items: the branches of `#if` / * `#ifdef` (an include guard is one) and the body of `extern "C" { ... }`. */

Source from the content-addressed store, hash-verified

1162/* Node kinds that only group file-level items: the branches of `#if` /
1163 * `#ifdef` (an include guard is one) and the body of `extern "C" { ... }`. */
1164static bool is_c_include_container(const char *kind) {
1165 return strcmp(kind, "preproc_if") == 0 || strcmp(kind, "preproc_ifdef") == 0 ||
1166 strcmp(kind, "preproc_else") == 0 || strcmp(kind, "preproc_elif") == 0 ||
1167 strcmp(kind, "preproc_elifdef") == 0 || strcmp(kind, "linkage_specification") == 0 ||
1168 strcmp(kind, "declaration_list") == 0;
1169}
1170
1171/* Collect the includes among `parent`'s children, descending into
1172 * preprocessor branches: every header keeps its includes inside its include

Callers 1

parse_c_imports_inFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected