Two definitions of one qualified name that are one member name of one type * (a field and the method named like it), or one item name of one module * (declared twice under different cfg): the node stands for both, and a * reference in the doc of either may leave from it. Definitions of different * modules or parents only share a name the graph cannot tell apart. */
| 3584 | * reference in the doc of either may leave from it. Definitions of different |
| 3585 | * modules or parents only share a name the graph cannot tell apart. */ |
| 3586 | static bool rs_same_declared_name(const rs_scan_t *s, int a, int b) { |
| 3587 | const CBMDefArray *defs = &s->ctx->result->defs; |
| 3588 | const char *pa = defs->items[a].parent_class; |
| 3589 | const char *pb = defs->items[b].parent_class; |
| 3590 | bool same_parent = (!pa && !pb) || (pa && pb && strcmp(pa, pb) == 0); |
| 3591 | return same_parent && s->def_mod[a] != 0 && s->def_mod[a] == s->def_mod[b]; |
| 3592 | } |
| 3593 | |
| 3594 | /* Z records: a documented definition with references that does not own its |
| 3595 | * node and shares it with an unrelated definition (rs_same_declared_name). |