mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 09:16: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
|
2004-05-21 Bogdan Gheorghe
|
||||||
bug 63320 - Search does not consider working copies
|
bug 63320 - Search does not consider working copies
|
||||||
Added a check to turn off indexer timer thread, if number entered is <= 0
|
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 ){
|
public int matchLevel( ISourceElementCallbackDelegate node, LimitTo limit ){
|
||||||
if( searchFor == TYPEDEF ){
|
if ( !( node instanceof IASTClassSpecifier ) &&
|
||||||
if( !( node instanceof IASTTypedefDeclaration ) )
|
!( node instanceof IASTElaboratedTypeSpecifier ) &&
|
||||||
return IMPOSSIBLE_MATCH;
|
!( node instanceof IASTTypedefDeclaration ) &&
|
||||||
} else if( searchFor == ENUM ){
|
!( node instanceof IASTEnumerationSpecifier) )
|
||||||
if( !( node instanceof IASTEnumerationSpecifier ) )
|
|
||||||
return IMPOSSIBLE_MATCH;
|
|
||||||
} else if ( !( node instanceof IASTClassSpecifier ) &&
|
|
||||||
!( node instanceof IASTElaboratedTypeSpecifier ) &&
|
|
||||||
!( node instanceof IASTTypedefDeclaration ) &&
|
|
||||||
!( node instanceof IASTEnumerationSpecifier) )
|
|
||||||
{
|
{
|
||||||
return IMPOSSIBLE_MATCH;
|
return IMPOSSIBLE_MATCH;
|
||||||
|
} else if( searchFor != TYPE && ((searchFor == TYPEDEF) ^ (node instanceof IASTTypedefDeclaration)) ) {
|
||||||
|
return IMPOSSIBLE_MATCH;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( ! canAccept( limit ) )
|
if( ! canAccept( limit ) )
|
||||||
|
|
Loading…
Add table
Reference in a new issue