ClangPchManager: Update PCHs if time stamps of dependencies changed

If there is a newer file than the last indexing or if a file is added or
removed from the project or system PCH we have to reindex the project and
maybe the system PCH.

Change-Id: Ibce2a244190a79b5c422c469c065ddc11e44b2cb
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2019-07-31 16:54:39 +02:00
parent f1be7793c4
commit 56d611e0a3
15 changed files with 788 additions and 132 deletions

View File

@@ -117,16 +117,7 @@ public:
push_back(std::move(string));
}
BasicSmallStringVector clone() const
{
BasicSmallStringVector clonedVector;
clonedVector.reserve(Base::size());
for (auto &&entry : *this)
clonedVector.push_back(entry.clone());
return clonedVector;
}
BasicSmallStringVector clone() const { return *this; }
operator std::vector<std::string>() const
{