Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 4.8.0-beta2
-
Ubuntu 18.04
Windows 10
Description
- Have the ClangCodeModel enabled.
- Define a class like this:
class Test{ void fun(int a); void fun(int a, int b); // void fun(); };
- Have an object of that class, start typing the function's name and trigger code completion:
Test t; t.f
The function's name will be completed including the opening brace.
- After the other function declarations, add a function of the same name to your class which does not take a parameter, e.g. just uncomment the line in the example above.
- Repeat step 3.
The function will not be completed, but you'll see a popup offering you the function twice.
I don't think it makes sense to show the function twice because only the name would be completed anyway. Even worse, if the function without parameters is declared above the others, the function's name will be completed immediately.
Found by Squish test tst_CSUP06.