forked from qt-creator/qt-creator
Clang: Clean up ClangCompletionContextAnalyzer
Change-Id: I899cc5cffc389ef023b35825807bde469bb6d31d Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
This commit is contained in:
@@ -91,15 +91,14 @@ void ClangCompletionContextAnalyzer::analyze()
|
||||
m_positionForProposal = activationSequenceContextProcessor.positionAfterOperator();
|
||||
|
||||
const bool actionIsSet = handleNonFunctionCall(afterOperatorPosition);
|
||||
|
||||
if (!actionIsSet) {
|
||||
handleCommaInFunctionCall();
|
||||
handleFunctionCall(afterOperatorPosition);
|
||||
}
|
||||
}
|
||||
|
||||
ClangCompletionContextAnalyzer::FunctionInfo ClangCompletionContextAnalyzer::analyzeFunctionCall(
|
||||
int endOfOperator) const
|
||||
ClangCompletionContextAnalyzer::FunctionInfo
|
||||
ClangCompletionContextAnalyzer::analyzeFunctionCall(int endOfOperator) const
|
||||
{
|
||||
int index = skipPrecedingWhitespace(endOfOperator);
|
||||
QTextCursor textCursor(m_interface->textDocument());
|
||||
@@ -150,7 +149,8 @@ void ClangCompletionContextAnalyzer::setActionAndClangPosition(CompletionAction
|
||||
m_positionForClang = position;
|
||||
}
|
||||
|
||||
void ClangCompletionContextAnalyzer::setAction(ClangCompletionContextAnalyzer::CompletionAction action)
|
||||
void
|
||||
ClangCompletionContextAnalyzer::setAction(ClangCompletionContextAnalyzer::CompletionAction action)
|
||||
{
|
||||
setActionAndClangPosition(action, -1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user