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.) */
| 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.) */ |
| 5789 | static 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 |