-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple hits for function definition using schema #85
Comments
this is basically a macro related problem apparently. |
Can we handle this case specially, given the popularity of schema? Perhaps there's a reliable way to separate the spurious matches from the real ones? |
I'm not really satisfied with the current solution. We're now unable to report (or count) occurrences on the same line. I think a better approach is to verify suspicious occurrences in the middleware, before passing them on to the client. We can do this by checking if the symbol actually occurs at the coordinates in question. |
it does not make sense to report occurrences on the same line in grep buffer. that does not mean that verify occurrences is a bad idea of course. I would deem this low priority tho as the current approach works for all cases i am aware of |
I'm not sure I agree with this, but what I value more is consistency. So far I've tried using Anyway, we're in a somewhat tricky situation in that the client does know if it's dealing with a real occurrence or a spurious one. So in some cases we're hiding duplicates (and can't report a correct count) but in other cases we have the correct count and it would be nice to report it. |
This resulted in the following hits:
The two final hits should be a single hit. Most likely this is a problem with the filter of symbol occurrences in macro definitions.
The text was updated successfully, but these errors were encountered: