mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
Bug 538509 - Ensure a lookup point is always set during semantic highlighting
Change-Id: I121a07c8ef6bf9230e5447e266f5304b598f1a83
This commit is contained in:
parent
0cf1ee7fde
commit
567243a752
1 changed files with 6 additions and 1 deletions
|
@ -445,7 +445,12 @@ public class SemanticHighlightingReconciler implements ICReconcilingListener {
|
|||
* @param visitor the AST visitor
|
||||
*/
|
||||
private void reconcilePositions(IASTTranslationUnit ast, PositionCollector visitor) {
|
||||
ast.accept(visitor);
|
||||
try {
|
||||
CPPSemantics.pushLookupPoint(ast);
|
||||
ast.accept(visitor);
|
||||
} finally {
|
||||
CPPSemantics.popLookupPoint();
|
||||
}
|
||||
List<HighlightedPosition> oldPositions= fRemovedPositions;
|
||||
List<HighlightedPosition> newPositions= new ArrayList<HighlightedPosition>(fNOfRemovedPositions);
|
||||
for (int i= 0, n= oldPositions.size(); i < n; i ++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue