-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
Qt Creator 3.4.0
-
None
-
Ubuntu 14.04 x64
Qt Creator 3.4.0 (opensource)
When triggering the "Move Definition ..." quickifx refactor action on a function that uses Q_DECL_OVERRIDE the output is mangled code:
Given the code:
class MyTestClass {
void testFunction() Q_DECL_OVERRIDE {
int a = 0;
}
};
Produces the following on "Move Definition Outside Class":
class MyTestClass {
void testFunction() Q_DECL_OVERRIDE {
int a = 0;
};
};
void TestItem::MyTestClass::testFunction()
};
When just removing the Q_DECL_OVERRIDE the output is valid:
class MyTestClass {
void testFunction();
};
void TestItem::MyTestClass::testFunction() {
int a = 0;
}
- duplicates
-
QTCREATORBUG-12314 Move Definition Outside Class has wrong output with override macro
-
- Open
-