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:
Ivan Donchevskii
2018-10-16 15:19:41 +02:00
parent d1cd39081b
commit f8e6ba916c
2 changed files with 9 additions and 1 deletions

View File

@@ -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);