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.
Attachments
For Gerrit Dashboard: QTCREATORBUG-18947 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
205889,5 | Revert "SearchResultWidget: Disable replace button if replace text is unchanged" | 4.4 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
207004,2 | SearchResultWidget: Disable replace button for unchanged replace text | 4.5 | qt-creator/qt-creator | Status: DEFERRED | -1 | 0 |