1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Updated content assist to not clear() the Scanner's definition map.

This commit is contained in:
John Camelon 2004-03-11 18:04:42 +00:00
parent f4766d0e55
commit a556bad46a
2 changed files with 4 additions and 2 deletions

View file

@ -1,3 +1,6 @@
2004-03-11 John Camelon
Updated content assist to not clear() the Scanner's definition map.
2004-03-09 Alain Magloire
Added the source folder refactor in the build

View file

@ -78,7 +78,7 @@ public class CompletionEngine implements RelevanceConstants {
int completionStart = 0;
int completionLength = 0;
IPreferenceStore store = CUIPlugin.getDefault().getPreferenceStore();
private Map macroMap = new HashMap();
private Map macroMap = null;
private static final String exceptionKeyword = "..."; //$NON-NLS-1$
// scope relevance element counters
@ -175,7 +175,6 @@ public class CompletionEngine implements RelevanceConstants {
IParser parser = null;
IScanner scanner = null;
macroMap.clear();
try
{
scanner = ParserFactory.createScanner( reader, realPath.toOSString(), scanInfo, ParserMode.COMPLETION_PARSE, language, requestor, ParserUtil.getScannerLogService() );