Remember the flags of namespace `ns` before the file's scope sets them. */
| 683 | |
| 684 | /* Remember the flags of namespace `ns` before the file's scope sets them. */ |
| 685 | static bool undo_note_ns(cs_index_t *ix, int ns) { |
| 686 | cs_undo_t *u = &ix->undo; |
| 687 | if (ns >= u->nnss) { |
| 688 | return true; /* made by this file: taken back as a whole */ |
| 689 | } |
| 690 | if (!undo_room(ix, (void **)&u->flags, u->nflags, &u->cap_flags, sizeof(cs_ns_was_t))) { |
| 691 | return false; |
| 692 | } |
| 693 | u->flags[u->nflags++] = |
| 694 | (cs_ns_was_t){.ns = ns, .declared = ix->nss[ns].declared, .prod = ix->nss[ns].prod}; |
| 695 | return true; |
| 696 | } |
| 697 | |
| 698 | /* A type name declared in `f` at a place no namespace or outer type could be |
| 699 | * established for. Product code never binds test-only declarations, so a name |
no test coverage detected