Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.13.1
-
None
-
-
3418f09da7c4724c69b45a99d377d01fa3929642 (qt-creator/qt-creator/4.14)
Description
Steps to reproduce:
- Define a class with a method:
class foo { public: void bar(); };
- Implement the bar method inside foo.cpp
void bar() { }
- Modify the signature of bar inside foo.cpp
void bar(std::function<void (int)> func) { }
- Press Alt + Return to modify the declaration of bar inside foo.h
- Qt Creator will have left off the void return type, declaring a syntactically invalid function object.
Attachments
For Gerrit Dashboard: QTCREATORBUG-24892 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
320234,2 | CppEditor: Do not omit template types | 4.14 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |