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

Function is_header_include

src/pipeline/pass_pkgmap.c:1836–1849  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1834}
1835
1836static bool is_header_include(const char *path) {
1837 if (!path || !path[0]) {
1838 return false;
1839 }
1840 static const char *header_exts[] = {".h", ".hh", ".hpp", ".hxx", ".inc", ".inl", ".ipp", NULL};
1841 for (const char **ext = header_exts; *ext; ext++) {
1842 size_t path_len = strlen(path);
1843 size_t ext_len = strlen(*ext);
1844 if (path_len > ext_len && strcmp(path + path_len - ext_len, *ext) == 0) {
1845 return true;
1846 }
1847 }
1848 return false;
1849}
1850
1851static bool is_c_family_source(const char *source_rel) {
1852 if (!source_rel || !source_rel[0]) {

Callers 1

resolve_header_includeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected