forked from qt-creator/qt-creator
C++: Fix crash on invalid function qualified name
Task-number: QTCREATORBUG-14135 Change-Id: I94e850f729bd3dbf4212960c7a980a1f118030b4 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -1706,7 +1706,10 @@ bool CreateBindings::visit(Declaration *decl)
|
||||
bool CreateBindings::visit(Function *function)
|
||||
{
|
||||
ClassOrNamespace *previous = _currentClassOrNamespace;
|
||||
_currentClassOrNamespace = lookupType(function, previous);
|
||||
ClassOrNamespace *binding = lookupType(function, previous);
|
||||
if (!binding)
|
||||
return false;
|
||||
_currentClassOrNamespace = binding;
|
||||
for (unsigned i = 0, count = function->memberCount(); i < count; ++i) {
|
||||
Symbol *s = function->memberAt(i);
|
||||
if (Block *b = s->asBlock())
|
||||
|
||||
Reference in New Issue
Block a user