mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Patch for Bryan, Bug 179454 - Patch modifies CPPVisitor.createBinding(ICPPASTElaboratedTypeSpecifier) to
ignore IIndexBindings and forces it to create a new ICPPInternalBinding instead. This behaviour is already implemented in other CPPVisitor.createBinding(...) methods.
This commit is contained in:
parent
0c819191c7
commit
b6f422c417
1 changed files with 2 additions and 2 deletions
|
@ -354,7 +354,7 @@ public class CPPVisitor {
|
|||
}
|
||||
try {
|
||||
binding = scope.getBinding( elabType.getName(), false );
|
||||
if( binding == null || !(binding instanceof ICPPClassType) ){
|
||||
if( !(binding instanceof ICPPInternalBinding) || !(binding instanceof ICPPClassType) ){
|
||||
if( elabType.getKind() != IASTElaboratedTypeSpecifier.k_enum ){
|
||||
if( template )
|
||||
binding = new CPPClassTemplate( name );
|
||||
|
@ -362,7 +362,7 @@ public class CPPVisitor {
|
|||
binding = new CPPClassType( name );
|
||||
ASTInternal.addName( scope, elabType.getName() );
|
||||
}
|
||||
} else if( binding instanceof ICPPInternalBinding ){
|
||||
} else {
|
||||
((ICPPInternalBinding)binding).addDeclaration( elabType );
|
||||
}
|
||||
} catch ( DOMException e ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue