forked from qt-creator/qt-creator
Clang: Fix abandoning the parentheses for function
Was introduced in 0f96f735f0 because the the incorrect
move to the '&' character.
Task-number: QTCREATORBUG-21305
Change-Id: I55d79e68795f55b758aa95072fca10bc00d49037
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -199,7 +199,7 @@ void ClangAssistProposalItem::apply(TextDocumentManipulatorInterface &manipulato
|
||||
|
||||
bool abandonParen = false;
|
||||
if (::Utils::Text::matchPreviousWord(manipulator, cursor, "&")) {
|
||||
::Utils::Text::moveToPrevChar(manipulator, cursor);
|
||||
::Utils::Text::moveToPrevWord(manipulator, cursor);
|
||||
::Utils::Text::moveToPrevChar(manipulator, cursor);
|
||||
const QChar prevChar = manipulator.characterAt(cursor.position());
|
||||
cursor.setPosition(basePosition);
|
||||
|
||||
Reference in New Issue
Block a user