forked from qt-creator/qt-creator
CppEditor:follow symbol:cursor is at the end of virtual function name
If the cursor is at the end of the virtual function name but before '('
then scope is a function.
Task-number: QTCREATORBUG-10294
Change-Id: I83699d3fa33bc0f33d6524fa6d84cfc2b9e71f85
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
542cee7560
commit
4132011238
@@ -119,7 +119,7 @@ bool VirtualFunctionHelper::canLookupVirtualFunctionOverrides(Function *function
|
||||
{
|
||||
m_function = function;
|
||||
if (!m_function || !m_baseExpressionAST || !m_expressionDocument || !m_document || !m_scope
|
||||
|| m_scope->isClass() || m_snapshot.isEmpty()) {
|
||||
|| m_scope->isClass() || m_scope->isFunction() || m_snapshot.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user