mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
fix some template issues
This commit is contained in:
parent
826dbd3f7d
commit
b944b852c0
1 changed files with 3 additions and 2 deletions
|
@ -150,12 +150,13 @@ public class BasicSymbol extends ExtensibleSymbol implements ISymbol
|
|||
_isTemplateMember = isMember;
|
||||
}
|
||||
public boolean isTemplateInstance(){
|
||||
return ( _symbolDef != null );
|
||||
return ( _isTemplateInstance && _symbolDef != null );
|
||||
}
|
||||
public ISymbol getInstantiatedSymbol(){
|
||||
return _symbolDef;
|
||||
}
|
||||
public void setInstantiatedSymbol( ISymbol symbol ){
|
||||
_isTemplateInstance = true;
|
||||
_symbolDef = symbol;
|
||||
}
|
||||
|
||||
|
@ -171,9 +172,9 @@ public class BasicSymbol extends ExtensibleSymbol implements ISymbol
|
|||
private int _depth; //how far down the scope stack we are
|
||||
|
||||
private boolean _isInvisible = false; //used by friend declarations (11.4-9)
|
||||
|
||||
private boolean _isTemplateMember = false;
|
||||
private boolean _isForwardDeclaration = false;
|
||||
private boolean _isTemplateInstance = false;
|
||||
private ISymbol _symbolDef = null; //used for forward declarations and template instantiations
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue