Commit 3978875f authored by Konstantin Tokarev's avatar Konstantin Tokarev Committed by Daniel Teske

Don't accumulate includePaths and frameworkPaths on each parsing

GenericProject was adding includePaths and frameworkPaths to ProjectInfo
on each parsing instead of updating their values.

Change-Id: Id60f553909e4a9829b9001e7dd54bbb7ed7623ce
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent 7f44b1e5
......@@ -261,6 +261,9 @@ void GenericProject::refresh(RefreshOptions options)
CPlusPlus::CppModelManagerInterface::ProjectPart::Ptr part(
new CPlusPlus::CppModelManagerInterface::ProjectPart);
pinfo.frameworkPaths.clear();
pinfo.includePaths.clear();
if (m_toolChain) {
part->defines = m_toolChain->predefinedMacros(QStringList());
part->defines += '\n';
......
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