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:
parent
fb2f901ac1
commit
eda5854c6b
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue