1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 10:16:03 +02:00

Fix for Bug 63275 - Ensure that only declarations and references are found for enumerations/enumerators

This commit is contained in:
Bogdan Gheorghe 2004-06-14 03:31:51 +00:00
parent e5e1f62891
commit 49500fb30e
3 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,6 @@
2004-06-13 Bogdan Gheorghe
Fix for Bug 63275 - Ensured that only declarations and references are found for enumerations/enumerators
2004-05-28 Bogdan Gheorghe
Fix for Bug 63831 - Ability to determine when the index is incomplete
Provided a way for external clients to query the index state of a project

View file

@ -543,9 +543,13 @@ public abstract class AbstractIndexer implements IIndexer, IIndexConstants, ICSe
prefix = ENUMTOR_REF;
} else if( limitTo == DECLARATIONS ){
prefix = ENUMTOR_DECL;
} else {
} else if (limitTo == ALL_OCCURRENCES){
return ENUMTOR_ALL;
}
else {
//Definitions
return "noEnumtorDefs".toCharArray();
}
return bestPrefix( prefix, (char)0, enumeratorName, containingTypes, matchMode, isCaseSensitive );
}

View file

@ -202,7 +202,6 @@ public class MatchLocator implements IMatchLocator{
IASTEnumerator enumerator = (IASTEnumerator) iter.next();
lastDeclaration = enumerator;
check ( DECLARATIONS, enumerator );
check ( DEFINITIONS, enumerator );
}
}