C++: removed hack to guess how header files should be parsed.

Change-Id: I2503ef372af3d58b32cf7ef9ddf76050a376a783
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
Erik Verbruggen
2012-11-28 09:19:59 +01:00
committed by Nikolai Kosjar
parent f3a5a60762
commit 696d55b0e0

View File

@@ -1010,14 +1010,6 @@ QList<CppModelManager::ProjectPart::Ptr> CppModelManager::projectPart(const QStr
if (!parts.isEmpty())
return parts;
//### FIXME: This is a DIRTY hack!
if (fileName.endsWith(QLatin1String(".h"))) {
QString cppFile = fileName.mid(0, fileName.length() - 2) + QLatin1String(".cpp");
parts = m_srcToProjectPart.value(cppFile);
if (!parts.isEmpty())
return parts;
}
DependencyTable table;
table.build(snapshot());
QStringList deps = table.filesDependingOn(fileName);