The node of definition `name` in `file`, by the QN extract_defs gave it. */
| 716 | |
| 717 | /* The node of definition `name` in `file`, by the QN extract_defs gave it. */ |
| 718 | static int64_t tf_def_node(tf_mod_t *m, const char *file, const char *name) { |
| 719 | const char *qn = cbm_fqn_compute(m->arena, m->ctx->project_name, file, name); |
| 720 | const cbm_gbuf_node_t *n = qn ? cbm_gbuf_find_by_qn(m->ctx->gbuf, qn) : NULL; |
| 721 | atomic_fetch_add_explicit(&g_tf_candidates, SKIP_ONE, memory_order_relaxed); |
| 722 | return n && n->file_path && strcmp(n->file_path, file) == 0 ? n->id : 0; |
| 723 | } |
| 724 | |
| 725 | /* Order paths by directory, then name: a directory's files are contiguous. */ |
| 726 | static int tf_cmp_dir_path(const void *x, const void *y) { |
no test coverage detected