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

Function path_leaf

src/pipeline/pass_pkgmap.c:1822–1830  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1820}
1821
1822static const char *path_leaf(const char *path) {
1823 const char *leaf = path;
1824 for (const char *p = path; p && *p; p++) {
1825 if (*p == '/' || *p == '\\') {
1826 leaf = p + 1;
1827 }
1828 }
1829 return leaf;
1830}
1831
1832static bool node_in_php_file(const cbm_gbuf_node_t *n) {
1833 return n && n->file_path && cbm_language_for_filename(path_leaf(n->file_path)) == CBM_LANG_PHP;

Callers 5

node_in_php_fileFunction · 0.85
resolve_exact_file_nodeFunction · 0.85
psr4_file_nodeFunction · 0.85
php_use_shapeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected