These decls are sometime used as the canonical declarations (e.g. for go-to-def),
which seems to be bad.
- friend decls that are not definitions should be ignored for indexing purposes
- this means they should never be selected as canonical decl
- if the friend decl is the only decl, then the symbol should not be indexed
Maybe move this closer to shouldFilterDecl()? We have similar filters there.
That would also mean we properly add the reference counts for friend declarations that get a normal declaration after their usage later.