forked from qt-creator/qt-creator
Cache the macros.
This commit is contained in:
@@ -2069,7 +2069,7 @@ SemanticInfo SemanticHighlighter::semanticInfo(const Source &source)
|
||||
snapshot = source.snapshot;
|
||||
doc = source.snapshot.documentFromSource(preprocessedCode, source.fileName);
|
||||
|
||||
FastMacroResolver fastMacroResolver(snapshot);
|
||||
FastMacroResolver fastMacroResolver(doc->translationUnit(), snapshot);
|
||||
doc->control()->setMacroResolver(&fastMacroResolver);
|
||||
doc->check();
|
||||
doc->control()->setMacroResolver(0);
|
||||
|
||||
Reference in New Issue
Block a user