mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Mirror of https://github.com/eclipse-cdt/cdt
![]() For normal lookups in the symbol table, a HashMap is faster than the tree map, but for prefix lookups the TreeMap is faster. So we are now using the HashMap for normal parses, and we use the TreeMap in the parse mode used by content assist. Note that with these changes the results returned by the IASTNode.lookup function used by content assist are now in predictable order: they are first sorted in the order of the scopes visited during the lookup and then they are sorted alphabetically Core: Modified symbol table constructor to take a ParseMode as a parameter. Modified symbol table to use a TreeMap instead of HashMap when ParseMode is COMPLETION_PARSE. Modified ASTNode.lookup to throw ASTNotImplementedException if called when ParseMode is not CONTEXTUAL_PARSE. Core.tests: Moved testBug48307_FriendFunction_1 & testBug48307_FriendFunction_2 to ContextualParseTest. Updated ContextualParseTest now that the order of prefix lookup results is predictable. UI: Updated CompletionEngine to catch ASTNotImplementedException from IASTNode.lookup. |
||
---|---|---|
build | ||
core | ||
debug | ||
doc | ||
launch/org.eclipse.cdt.launch | ||
releng |