Commit 696d55b0 authored by Erik Verbruggen's avatar Erik Verbruggen Committed by Nikolai Kosjar

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

Change-Id: I2503ef372af3d58b32cf7ef9ddf76050a376a783
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent f3a5a607
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment