mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 08:46:02 +02:00
bug 62731
This commit is contained in:
parent
a355b2cf1d
commit
701ada92df
2 changed files with 10 additions and 10 deletions
|
@ -1,3 +1,7 @@
|
|||
2004-05-21 Andrew Niefer
|
||||
bug 62731 - [Search] typedefs are appearing as union declarations
|
||||
* search/org/eclipse/cdt/internal/core/search/matching/ClassDeclarationPattern.java
|
||||
|
||||
2004-05-21 Bogdan Gheorghe
|
||||
bug 63320 - Search does not consider working copies
|
||||
Added a check to turn off indexer timer thread, if number entered is <= 0
|
||||
|
|
|
@ -73,18 +73,14 @@ public class ClassDeclarationPattern extends CSearchPattern {
|
|||
}
|
||||
|
||||
public int matchLevel( ISourceElementCallbackDelegate node, LimitTo limit ){
|
||||
if( searchFor == TYPEDEF ){
|
||||
if( !( node instanceof IASTTypedefDeclaration ) )
|
||||
return IMPOSSIBLE_MATCH;
|
||||
} else if( searchFor == ENUM ){
|
||||
if( !( node instanceof IASTEnumerationSpecifier ) )
|
||||
return IMPOSSIBLE_MATCH;
|
||||
} else if ( !( node instanceof IASTClassSpecifier ) &&
|
||||
!( node instanceof IASTElaboratedTypeSpecifier ) &&
|
||||
!( node instanceof IASTTypedefDeclaration ) &&
|
||||
!( node instanceof IASTEnumerationSpecifier) )
|
||||
if ( !( node instanceof IASTClassSpecifier ) &&
|
||||
!( node instanceof IASTElaboratedTypeSpecifier ) &&
|
||||
!( node instanceof IASTTypedefDeclaration ) &&
|
||||
!( node instanceof IASTEnumerationSpecifier) )
|
||||
{
|
||||
return IMPOSSIBLE_MATCH;
|
||||
} else if( searchFor != TYPE && ((searchFor == TYPEDEF) ^ (node instanceof IASTTypedefDeclaration)) ) {
|
||||
return IMPOSSIBLE_MATCH;
|
||||
}
|
||||
|
||||
if( ! canAccept( limit ) )
|
||||
|
|
Loading…
Add table
Reference in a new issue