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:
parent
ebd53b2c6d
commit
8742531520
2 changed files with 5 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue