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

Function using_opens

src/pipeline/doc_links_cs.c:5789–5794  ·  view source on GitHub ↗

True when the directive brings in names the repository does not declare: * a namespace it has no declaration of (or a standard-library one, which it * never has all of), a type it does not have. (An alias brings one name, and * says so itself where it is used.) */

Source from the content-addressed store, hash-verified

5787 * never has all of), a type it does not have. (An alias brings one name, and
5788 * says so itself where it is used.) */
5789static bool using_opens(const cs_index_t *ix, const cs_using_t *u) {
5790 if (u->kind == 'n') {
5791 return u->ns < 0 || !ix->nss[u->ns].declared || ix->nss[u->ns].standard;
5792 }
5793 return u->kind == 's' && u->ent == CS_NONE;
5794}
5795
5796/* What every using directive names, and which scopes are open. A directive
5797 * at the top of a file, a `global using` and a project file's <Using> are

Callers 1

resolve_usingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected