mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
Fix for Bug 63275 - Ensure that only declarations and references are found for enumerations/enumerators
This commit is contained in:
parent
e5e1f62891
commit
49500fb30e
3 changed files with 8 additions and 2 deletions
|
@ -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
|
2004-05-28 Bogdan Gheorghe
|
||||||
Fix for Bug 63831 - Ability to determine when the index is incomplete
|
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
|
Provided a way for external clients to query the index state of a project
|
||||||
|
|
|
@ -543,9 +543,13 @@ public abstract class AbstractIndexer implements IIndexer, IIndexConstants, ICSe
|
||||||
prefix = ENUMTOR_REF;
|
prefix = ENUMTOR_REF;
|
||||||
} else if( limitTo == DECLARATIONS ){
|
} else if( limitTo == DECLARATIONS ){
|
||||||
prefix = ENUMTOR_DECL;
|
prefix = ENUMTOR_DECL;
|
||||||
} else {
|
} else if (limitTo == ALL_OCCURRENCES){
|
||||||
return ENUMTOR_ALL;
|
return ENUMTOR_ALL;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
//Definitions
|
||||||
|
return "noEnumtorDefs".toCharArray();
|
||||||
|
}
|
||||||
|
|
||||||
return bestPrefix( prefix, (char)0, enumeratorName, containingTypes, matchMode, isCaseSensitive );
|
return bestPrefix( prefix, (char)0, enumeratorName, containingTypes, matchMode, isCaseSensitive );
|
||||||
}
|
}
|
||||||
|
|
|
@ -202,7 +202,6 @@ public class MatchLocator implements IMatchLocator{
|
||||||
IASTEnumerator enumerator = (IASTEnumerator) iter.next();
|
IASTEnumerator enumerator = (IASTEnumerator) iter.next();
|
||||||
lastDeclaration = enumerator;
|
lastDeclaration = enumerator;
|
||||||
check ( DECLARATIONS, enumerator );
|
check ( DECLARATIONS, enumerator );
|
||||||
check ( DEFINITIONS, enumerator );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue