forked from qt-creator/qt-creator
Renamed Document::findSymbolAt().
This commit is contained in:
@@ -66,7 +66,7 @@ QString AbstractEditorSupport::functionAt(const CppModelManagerInterface *modelM
|
||||
const CPlusPlus::Document::Ptr document = snapshot.document(fileName);
|
||||
if (!document)
|
||||
return QString();
|
||||
if (const CPlusPlus::Symbol *symbol = document->findSymbolAt(line, column))
|
||||
if (const CPlusPlus::Symbol *symbol = document->lastVisibleSymbolAt(line, column))
|
||||
if (const CPlusPlus::Scope *scope = symbol->scope())
|
||||
if (const CPlusPlus::Scope *functionScope = scope->enclosingFunctionScope())
|
||||
if (const CPlusPlus::Symbol *function = functionScope->owner()) {
|
||||
|
||||
@@ -746,7 +746,7 @@ int CppCodeCompletion::startCompletionInternal(TextEditor::BaseTextEditor *edit,
|
||||
return -1;
|
||||
|
||||
typeOfExpression.init(thisDocument, snapshot);
|
||||
Symbol *lastVisibleSymbol = thisDocument->findSymbolAt(line, column);
|
||||
Symbol *lastVisibleSymbol = thisDocument->lastVisibleSymbolAt(line, column);
|
||||
|
||||
if (expression.isEmpty()) {
|
||||
if (m_completionOperator == T_EOF_SYMBOL || m_completionOperator == T_COLON_COLON)
|
||||
@@ -1564,7 +1564,7 @@ void CppCodeCompletion::complete(const TextEditor::CompletionItem &item)
|
||||
}
|
||||
} else if (! function->isAmbiguous()) {
|
||||
if (completionSettings().m_spaceAfterFunctionName)
|
||||
extraChars += QLatin1Char(' ');
|
||||
extraChars += QLatin1Char(' ');
|
||||
extraChars += QLatin1Char('(');
|
||||
|
||||
// If the function doesn't return anything, automatically place the semicolon,
|
||||
|
||||
Reference in New Issue
Block a user