summaryrefslogtreecommitdiff
path: root/src/lib/buildgraph/scanresultcache.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2013-02-02 08:40:18 +0100
committerChristian Kandeler <christian.kandeler@digia.com>2013-02-04 16:30:09 +0100
commit5b5c9decbfd6e1e6e410915eb18358530890ad43 (patch)
treec00eb220cfa97273e80da1eb16d833e3be8300e3 /src/lib/buildgraph/scanresultcache.cpp
parentcfb1143f6e8c84f8de33d1cac80fe255c49ac7ba (diff)
downloadqbs-5b5c9decbfd6e1e6e410915eb18358530890ad43.tar.gz
do not scan files that are currently generated
We must not scan files that are in the state "Building". These files must be removed from the scan result cache. Inputs of dependents of these file must be scanned again in the next build round. Change-Id: Ic77f37ebc11224d16605701660ce09a8aaf6b194 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'src/lib/buildgraph/scanresultcache.cpp')
-rw-r--r--src/lib/buildgraph/scanresultcache.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/buildgraph/scanresultcache.cpp b/src/lib/buildgraph/scanresultcache.cpp
index 626ffcc61..6ee677036 100644
--- a/src/lib/buildgraph/scanresultcache.cpp
+++ b/src/lib/buildgraph/scanresultcache.cpp
@@ -52,5 +52,10 @@ void ScanResultCache::insert(const QString &fileName, const ScanResultCache::Res
m_data.insert(fileName, value);
}
+void ScanResultCache::remove(const QString &filePath)
+{
+ m_data.remove(filePath);
+}
+
} // namespace Internal
} // namespace qbs