There is not auto complete when using template specialization. Here is a minimal code example template <class Arg> class Test; template <class Arg> class Test<void(Arg)> { public: foo(); }; void bar() { Test t; t. } After t. and Ctrl+Space there is no autocomplete, but it should. I know this is really hard for kdevelop to find out, but please make this working. Reproducible: Always Steps to Reproduce: 1. Copy the code 2. Paste the code 3. Press Ctrl+Space after t. Actual Results: auto complete word Expected Results: auto complete function
Created attachment 98502 [details] Autosuggestion of the method for the instance of a templatized class
Hi Marcel, Reproduced the steps. The autosuggestion of the method for the instance of template class does show up. Made slight change in the way the method was declared in the template class, by declaring the return type for the method. This is because as you know, a type specifier is required for all declarations in c++.
Marking this bug as invalid. The initial code example has invalid code. a) no return type for `foo` b) use of class 'Test' requires template arguments. Fixing (a) + (b) fixes the problem and KDevelop 5.0 successfully provides completion hints. Code: ``` Test<void(int)> t; t. ```