forked from qt-creator/qt-creator
C++: Fix crash when handling lambdas as arguments
Proper fix will follow. Task-number: QTCREATORBUG-8316 Change-Id: I7c86f0b0b0802c310bcce619b5c69ad33ffa0d52 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
3
src/libs/3rdparty/cplusplus/Symbols.cpp
vendored
3
src/libs/3rdparty/cplusplus/Symbols.cpp
vendored
@@ -379,6 +379,9 @@ bool Function::maybeValidPrototype(unsigned actualArgumentCount) const
|
||||
for (; minNumberArguments < this->argumentCount(); ++minNumberArguments) {
|
||||
Argument *arg = this->argumentAt(minNumberArguments)->asArgument();
|
||||
|
||||
if (! arg) // TODO: Fix me properly - QTCREATORBUG-8316
|
||||
return false;
|
||||
|
||||
if (arg->hasInitializer())
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user