1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

fix bug 93573

This commit is contained in:
Andrew Niefer 2005-05-19 20:26:20 +00:00
parent d92ccd3e38
commit 70ae4fdbaf
2 changed files with 9 additions and 6 deletions

View file

@ -238,24 +238,21 @@ public abstract class CPPTemplateDefinition implements ICPPTemplateDefinition, I
* @see org.eclipse.cdt.core.dom.ast.cpp.ICPPBinding#getQualifiedName() * @see org.eclipse.cdt.core.dom.ast.cpp.ICPPBinding#getQualifiedName()
*/ */
public String[] getQualifiedName() { public String[] getQualifiedName() {
// TODO Auto-generated method stub return CPPVisitor.getQualifiedName( this );
return null;
} }
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.cpp.ICPPBinding#getQualifiedNameCharArray() * @see org.eclipse.cdt.core.dom.ast.cpp.ICPPBinding#getQualifiedNameCharArray()
*/ */
public char[][] getQualifiedNameCharArray() { public char[][] getQualifiedNameCharArray() {
// TODO Auto-generated method stub return CPPVisitor.getQualifiedNameCharArray( this );
return null;
} }
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.cpp.ICPPBinding#isGloballyQualified() * @see org.eclipse.cdt.core.dom.ast.cpp.ICPPBinding#isGloballyQualified()
*/ */
public boolean isGloballyQualified() { public boolean isGloballyQualified() {
// TODO Auto-generated method stub return true;
return false;
} }
/* (non-Javadoc) /* (non-Javadoc)

View file

@ -1867,6 +1867,9 @@ public class CPPVisitor {
try { try {
ICPPScope scope = (ICPPScope) binding.getScope(); ICPPScope scope = (ICPPScope) binding.getScope();
while( scope != null ){ while( scope != null ){
if( scope instanceof ICPPTemplateScope )
scope = (ICPPScope) scope.getParent();
IASTName n = scope.getScopeName(); IASTName n = scope.getScopeName();
if( n == null ) if( n == null )
break; break;
@ -1894,6 +1897,9 @@ public class CPPVisitor {
try { try {
ICPPScope scope = (ICPPScope) binding.getScope(); ICPPScope scope = (ICPPScope) binding.getScope();
while( scope != null ){ while( scope != null ){
if( scope instanceof ICPPTemplateScope )
scope = (ICPPScope) scope.getParent();
IASTName n = scope.getScopeName(); IASTName n = scope.getScopeName();
if( n == null ) if( n == null )
break; break;