Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 6.0.2
-
None
-
-
ce27886eeb (qt-creator/qt-creator/7.0) ce27886eeb (qt-creator/qt-creator/master) ce27886eeb (qt-creator/tqtc-qt-creator/7.0) ce27886eeb (qt-creator/tqtc-qt-creator/master) ce27886eeb (qt-creator/tqtc-qt-creator/qds-3.1)
Description
Reproduce:
QString* s; // s is a pointer .. nevertheless I'm lazy and type '.' after s // instead of '->' s.t<Cursor>
After typing the '.' I get a listing of possible methods to choose from.
I type 't'.
This gives me a auto completion pop-up with preselected 'toStdString() const',
exactly what I want so I press <Enter>.
The result is
QString* s;
s->toStrdString()<Cursor>t // '.' replaced by '->' OK, but what about the 't' ?
so I get a 't' after the curser.
If I'm not so lazy and type 'to' after the point. everything is fine.
ps: Clang Code Model with exprimental Clangd activated.
Attachments
For Gerrit Dashboard: QTCREATORBUG-27034 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
395145,2 | ClangCodeModel: Fix dot-to-arrow completion with extra characters | 7.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |