D124637 improved filtering of method expressions, but not method
definitions. With this change, clangd will now filter ObjC method
definition completions based on their entire selector instead of
only the first selector fragment.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Ah, this is subtle. Thanks!
clang-tools-extra/clangd/CodeComplete.cpp | ||
---|---|---|
866 | weirdly, codeCompletionString(Result) looks like it would mutate Result and then return a pattern with the same chunks (but different extra fields). So not affect the result of this function, but possibly others as a side-effect. (e.g. add BriefComment and ParentName in the case that there's a pattern + declaration, as there is here) What you have is fine, but if you feel like digging deeper codeCompletionString(Result) may be either better or worse here! |
clang-tools-extra/clangd/CodeComplete.cpp | ||
---|---|---|
866 | Hmm from what I can tell, it appears those are unused by clangd, but for posterity I can swap it over |
weirdly, codeCompletionString(Result) looks like it would mutate Result and then return a pattern with the same chunks (but different extra fields). So not affect the result of this function, but possibly others as a side-effect.
(e.g. add BriefComment and ParentName in the case that there's a pattern + declaration, as there is here)
What you have is fine, but if you feel like digging deeper codeCompletionString(Result) may be either better or worse here!