1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

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
This commit is contained in:
Andrew Niefer 2005-04-01 18:56:59 +00:00
parent df814fefe9
commit d151e913f6

View file

@ -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 ||