Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 3.2.2, Qt Creator 3.3.1, Qt Creator 3.6.0, Qt Creator 4.12.0-beta2
-
None
-
c6a56cce28807d84e1ba01925061ec301e79440c (qt-creator/qt-creator/master)
Description
When changing a template function and applying the signature change, the return type of the template is removed.
Steps to reproduce
- Create a function in a class body and header: void MyClass::foo(const QString &val, std::function<void (QByteArray)> callback)
- Change function body to: void MyClass::foo(const QString &val, std::function<void (const QByteArray &)> callback)
- Apply function signature change.
What do you see
- in header: void foo(const QString &val, std::function<(const QByteArray &)> callback)
What do you expect
- in header: void foo(const QString &val, std::function<void (const QByteArray &)> callback)
The same happens if you change the signature in the header.
Adding the function is ok.
Attachments
For Gerrit Dashboard: QTCREATORBUG-13698 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
309684,2 | CppEditor: Do not omit the function return type | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |