-
Notifications
You must be signed in to change notification settings - Fork 59
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
No completion for template type member. #359
Comments
What completion proposals are you expecting? |
I should probably rewrite this as I realize now my original post makes no sense, and I didn't provide enough info as to why I'm posting this to begin with. Apologies. This is a very simplified version of what I have in my project. nesmemory.hpp
mem6502.hpp
core6502.hpp
core6502.cpp
nes.hpp
I wasn't really thinking this through when I originally posted this, what had me confused is that I when I opened the project in KDevelop (I don't use it regularly), I noticed that I can get completions into |
It looks like KDevelop is just showing generic text completions, and hasn't "magically" figured out any "prospective" completions. Sorry to waste your time. |
Thanks for the clarification. Providing completion proposals for members of template parameters is an interesting challenge. There are some heuristics that could be employed, such as looking at what arguments the template is instantiated with in the translation unit (or possibly in the entire project, like you suggest) and offering their members. However, it's also worth noting that C++20 Concepts offer a nice solution for this. With Concepts, you can express the fact that " |
That's very interesting, concepts is an area I haven't looked into at all yet. There's a lot of talk about concepts but they always seem to feel like a far off thing in my head and I still haven't learned much about them. Thank you for pointing me into that direction! |
Not quite sure if this is a duplicate of (#358), but I'm not getting completions when accessing 'member'.
System information
clangd version 10.0.0
Emacs with emacs-lsp
Operating system: Arch Linux
The text was updated successfully, but these errors were encountered: