1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 06:45:43 +02:00

Patch For Andrew : Fix for bug#50729 : Visibility is incorrectly decided in inheritance

This commit is contained in:
Hoda Amer 2004-01-28 19:23:43 +00:00
parent ebd53b2c6d
commit 8742531520
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,6 @@
2004-01-28 Andrew Niefer
Fixed bug#50729: Visibility is incorrectly decided in inheritance
2004-01-27 John Camelon
Refactored parser to allow for cleaner content assist implementation.
Removed IASTCompletionNode.CompletionKind.STATEMENT_START as it is redundant.

View file

@ -650,7 +650,7 @@ public class ContainerSymbol extends BasicSymbol implements IContainerSymbol {
}
IContainerSymbol container = getContainingSymbol();
IContainerSymbol symbolContainer = ( qualifyingSymbol != null ) ? qualifyingSymbol : symbol.getContainingSymbol();
IContainerSymbol symbolContainer = symbol.getContainingSymbol();
if( !symbolContainer.isType( TypeInfo.t_class, TypeInfo.t_union ) ||
symbolContainer.equals( container ) )
@ -659,7 +659,7 @@ public class ContainerSymbol extends BasicSymbol implements IContainerSymbol {
}
//if this is a friend of the symbolContainer, then we are good
if( isFriendOf( symbolContainer ) ){
if( isFriendOf( ( qualifyingSymbol != null ) ? qualifyingSymbol : symbolContainer ) ){
return true;
}