Details
-
Bug
-
Resolution: Incomplete
-
P3: Somewhat important
-
None
-
Qt Creator 4.11.0
-
None
Description
OS: Ubuntu 1604
When overriding a virtual method, the code generator adds () after the override keyword.
Repro case
- Create a base class with a virtual function.
- Create a sub class and begin typing the virtual function declaration in the header file.
- The code completer suggests the function name with the override key word.
- Accept the code completer candidate.
Expected result
The code completion generates the function declaration with correct signature.
Actual result
The code completion generates the function name with correct signature, except with an added () pair at the end of the function declaration.
For example
// code placeholder class A { public: A(); virtual void doSomething(); }; //I'm using a different header file for class B class B : public A { public: B(); void doSomething() override(); //OOPS generator added extra parens CLANG error in IDE };