From a720d967ff822b2b6eb0049d4ce4730caaca919f Mon Sep 17 00:00:00 2001 From: Roberto Raggi <roberto.raggi@nokia.com> Date: Mon, 16 Mar 2009 12:31:34 +0100 Subject: [PATCH] Parse only c/c++ files. --- src/plugins/cpptools/cppmodelmanager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp index f02779acd70..5eda4b77e54 100644 --- a/src/plugins/cpptools/cppmodelmanager.cpp +++ b/src/plugins/cpptools/cppmodelmanager.cpp @@ -988,13 +988,16 @@ void CppModelManager::parse(QFutureInterface<void> &future, Core::MimeType cSourceTy = db->findByType(QLatin1String("text/x-csrc")); Core::MimeType cppSourceTy = db->findByType(QLatin1String("text/x-c++src")); + Core::MimeType cHeaderTy = db->findByType(QLatin1String("text/x-hdr")); + Core::MimeType cppHeaderTy = db->findByType(QLatin1String("text/x-c++hdr")); + foreach (const QString &file, files) { const QFileInfo fileInfo(file); if (cSourceTy.matchesFile(fileInfo) || cppSourceTy.matchesFile(fileInfo)) sources.append(file); - else + else if (cHeaderTy.matchesFile(fileInfo) || cppHeaderTy.matchesFile(fileInfo)) headers.append(file); } -- GitLab