Without this patch clangd does not collect references for main-file symbols if there is no public declaration in preamble.
Example:
test1.c
void f1() {}
test2.c
extern void f1(); void f2() { f^1(); }
Find all references does not show definition of f1() in the result, but GTD works OK.
this will result in calculation and caching of linkage. it should be OK to do so though, as we run indexing after parsing finishes. (no action needed, just some notes for future travellers).