forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user