forked from qt-creator/qt-creator
Clang: Add Process Generator
So far we only compiled the precompiled headers only sequentially. The process generator is creating, managing a queue of processes to compile the PCHs parallel. Change-Id: I8075def4ef9e6b0191bbd51b3631d1c51ec7b361 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -64,16 +64,18 @@ public:
|
||||
llvm::StringRef /*relativePath*/,
|
||||
const clang::Module */*imported*/) override
|
||||
{
|
||||
auto fileUID = file->getUID();
|
||||
if (file) {
|
||||
auto fileUID = file->getUID();
|
||||
|
||||
flagIncludeAlreadyRead(file);
|
||||
flagIncludeAlreadyRead(file);
|
||||
|
||||
if (isNotInExcludedIncludeUID(fileUID)) {
|
||||
auto notAlreadyIncluded = isNotAlreadyIncluded(fileUID);
|
||||
if (notAlreadyIncluded.first) {
|
||||
m_alreadyIncludedFileUIDs.insert(notAlreadyIncluded.second, fileUID);
|
||||
uint includeId = m_filePathCache.stringId({fileName.data(), fileName.size()});
|
||||
m_includeIds.emplace_back(includeId);
|
||||
if (isNotInExcludedIncludeUID(fileUID)) {
|
||||
auto notAlreadyIncluded = isNotAlreadyIncluded(fileUID);
|
||||
if (notAlreadyIncluded.first) {
|
||||
m_alreadyIncludedFileUIDs.insert(notAlreadyIncluded.second, fileUID);
|
||||
uint includeId = m_filePathCache.stringId({fileName.data(), fileName.size()});
|
||||
m_includeIds.emplace_back(includeId);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user