From 9c3f5dd3a43a5e62e4c4dc9f64a24727fa5402db Mon Sep 17 00:00:00 2001 From: Fawzi Mohamed Date: Thu, 20 Nov 2014 16:13:32 +0100 Subject: qmljs: avoid storing qmltypes and qmlproject qmltypes files were stored in the snapshot during scan, this is wrong and bloats the memory usage. Task-number: QTCREATORBUG-13369 Change-Id: Ie8c3970ad7a8d732230f3dc73a9ba65ab62ea4e9 Reviewed-by: Eike Ziller Reviewed-by: Fawzi Mohamed --- src/libs/qmljs/qmljsmodelmanagerinterface.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libs/qmljs/qmljsmodelmanagerinterface.cpp') diff --git a/src/libs/qmljs/qmljsmodelmanagerinterface.cpp b/src/libs/qmljs/qmljsmodelmanagerinterface.cpp index b24478797b..0586b1b420 100644 --- a/src/libs/qmljs/qmljsmodelmanagerinterface.cpp +++ b/src/libs/qmljs/qmljsmodelmanagerinterface.cpp @@ -876,6 +876,8 @@ void ModelManagerInterface::parseLoop(QSet &scannedPaths, language = mainLanguage; if (language == Dialect::Qml && mainLanguage == Dialect::QmlQtQuick2Ui) language = Dialect::QmlQtQuick2; + if (language == Dialect::QmlTypeInfo || language == Dialect::QmlProject) + continue; QString contents; int documentRevision = 0; -- cgit v1.2.1