mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 20:05:35 +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) {
|
public static IBinding findDeclarationOwner(IASTNode node, boolean allowFunction) {
|
||||||
// Search for declaration
|
// Search for declaration
|
||||||
boolean isNonSimpleElabDecl= false;
|
boolean isNonSimpleElabDecl= false;
|
||||||
while (!(node instanceof IASTDeclaration)) {
|
while (!(node instanceof IASTDeclaration) && !(node instanceof ICPPASTLambdaExpression)) {
|
||||||
if (node == null)
|
if (node == null)
|
||||||
return null;
|
return null;
|
||||||
if (node instanceof IASTElaboratedTypeSpecifier) {
|
if (node instanceof IASTElaboratedTypeSpecifier) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue