forked from qt-creator/qt-creator
C++: pass #include_next down to CppPreprocessor::tryIncludeFile
This does not yet resolve the file using the proper mechanism. Change-Id: I04913e8b01ae0c3411961f0c1cffe07202f06a0a Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -373,13 +373,15 @@ QString CppPreprocessor::tryIncludeFile(QString &fileName, IncludeType type, uns
|
||||
|
||||
return QString();
|
||||
}
|
||||
|
||||
const QString originalFileName = fileName;
|
||||
const QString contents = tryIncludeFile_helper(fileName, type, revision);
|
||||
m_fileNameCache.insert(originalFileName, fileName);
|
||||
return contents;
|
||||
}
|
||||
|
||||
const QString originalFileName = fileName;
|
||||
const QString contents = tryIncludeFile_helper(fileName, type, revision);
|
||||
if (type == IncludeGlobal)
|
||||
m_fileNameCache.insert(originalFileName, fileName);
|
||||
return contents;
|
||||
// IncludeLocal, IncludeNext
|
||||
return tryIncludeFile_helper(fileName, type, revision);
|
||||
}
|
||||
|
||||
QString CppPreprocessor::cleanPath(const QString &path)
|
||||
|
Reference in New Issue
Block a user