1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Bug 402878. Fixed a bug in getOwner method for closures.

This commit is contained in:
Sergey Prigogin 2013-05-16 20:57:58 -07:00
parent fb2f901ac1
commit eda5854c6b

View file

@ -2556,7 +2556,7 @@ public class CPPVisitor extends ASTQueries {
public static IBinding findDeclarationOwner(IASTNode node, boolean allowFunction) {
// Search for declaration
boolean isNonSimpleElabDecl= false;
while (!(node instanceof IASTDeclaration)) {
while (!(node instanceof IASTDeclaration) && !(node instanceof ICPPASTLambdaExpression)) {
if (node == null)
return null;
if (node instanceof IASTElaboratedTypeSpecifier) {