From d151e913f607523c799fd001677079a13c5f0dc0 Mon Sep 17 00:00:00 2001 From: Andrew Niefer Date: Fri, 1 Apr 2005 18:56:59 +0000 Subject: [PATCH] bug 89396 when deciding whether or not to check the whole class scope, if the name is a qualified name segement, use the property of the qualified name instead --- .../eclipse/cdt/internal/core/dom/parser/cpp/CPPSemantics.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPSemantics.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPSemantics.java index 34d1b0154d2..5b5af9b4232 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPSemantics.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPSemantics.java @@ -236,6 +236,8 @@ public class CPPSemantics { if( astName == null ) return false; if( astName.getPropertyInParent() == STRING_LOOKUP_PROPERTY ) return true; ASTNodeProperty prop = astName.getPropertyInParent(); + if( prop == ICPPASTQualifiedName.SEGMENT_NAME ) + prop = astName.getParent().getPropertyInParent(); if( prop == IASTIdExpression.ID_NAME || prop == IASTFieldReference.FIELD_NAME || prop == ICASTFieldDesignator.FIELD_NAME ||