CppTools: Locator: Do not index *.moc files

The symbols of these files do not provide much value.

Change-Id: Ie81b12dc795c068742600e272807f9e6a87609ea
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@theqtcompany.com>
This commit is contained in:
Nikolai Kosjar
2014-11-05 11:04:49 +01:00
parent 1c12b30bef
commit d23d81f951

View File

@@ -61,7 +61,7 @@ void CppLocatorData::onDocumentUpdated(const CPlusPlus::Document::Ptr &document)
}
}
if (i == ei)
if (i == ei && QFileInfo(document->fileName()).suffix() != QLatin1String("moc"))
m_pendingDocuments.append(document);
flushPendingDocument(false);