Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.4.0
-
None
-
QtCreator 4.4.0 and Qt 5.6.2 from online installer.
ClangCodeModel enabled
ClangRefactoring NOT enabled
-
80415bd14ed472733929a38e3fce054bd4a5eab9
Description
Refactoring all caps global variable into camel case (using RMB -> Refactor -> Convert to Camel Case) does not work in this code example:
#include <QString> #include <QDebug> const QString SOME_CONSTANT = QStringLiteral("Foo"); int main() { qDebug() << SOME_CONSTANT; }
"Replace" button is disabled, and tooltip says:
Cannot replace because replacement text is unchanged.
Although suggested replacement text "SomeConstant" IS different from original "SOME_CONSTANT". Or I misunderstood something?
Please see screenshot attached.