Fixed code completion when using macros in the expression's code (e.g. in qApp->).

This commit is contained in:
Roberto Raggi
2008-12-11 11:27:07 +01:00
parent 7239d03ee7
commit 4679f38a87
3 changed files with 58 additions and 4 deletions

View File

@@ -439,7 +439,8 @@ int CppCodeCompletion::startCompletion(TextEditor::ITextEditable *editor)
typeOfExpression.setDocuments(m_manager->documents());
QList<TypeOfExpression::Result> resolvedTypes = typeOfExpression(expression, thisDocument, symbol);
QList<TypeOfExpression::Result> resolvedTypes = typeOfExpression(expression, thisDocument, symbol,
TypeOfExpression::Preprocess);
LookupContext context = typeOfExpression.lookupContext();
if (!typeOfExpression.expressionAST() && (! m_completionOperator ||