Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
Qt Creator 3.1.1
Description
#define OVERRIDE override struct Base { virtual int func() = 0; }; struct Derived : Base { int func() OVERRIDE { return 42; } };
Results in:
struct Derived : Base { int func() OVERRIDE {; }; int Derived::func()return 42; }
The same is true if I replace override with const.
Attachments
Issue Links
- is duplicated by
-
QTCREATORBUG-14503 Quickfix "Move definition ..." breaks functions using Q_DECL_OVERRIDE
-
- Closed
-
Gerrit Reviews
For Gerrit Dashboard: QTCREATORBUG-12314 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
86415,3 | CppEditor: Fix "Move Definition Outside Class" when macros are used... | master | qt-creator/qt-creator | Status: ABANDONED | -1 | 0 |
88381,5 | CppEditor: Add failing tests for "Move Definition Outside Class"... | 3.2 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |