forked from qt-creator/qt-creator
C++: Use correct features for document parsing
Task-number: QTCREATORBUG-8007 Change-Id: Ic96aaa433442812a99bac9d16bb9124d66762e8c Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
97cbfb95bb
commit
f3a2795c3b
@@ -304,6 +304,7 @@ void PchManager::doPchInfoUpdateFuzzy(QFutureInterface<void> &future,
|
||||
projectPart->languageVersion = languageVersions[pch];
|
||||
projectPart->languageExtensions = languageExtensionsMap[pch];
|
||||
projectPart->headerPaths = headers[pch].toList();
|
||||
projectPart->updateLanguageFeatures();
|
||||
|
||||
QList<QByteArray> defines = definesPerPCH[pch].toList();
|
||||
if (!defines.isEmpty()) {
|
||||
@@ -386,6 +387,7 @@ void PchManager::doPchInfoUpdateCustom(QFutureInterface<void> &future,
|
||||
objc |= hasObjCFiles(projectPart);
|
||||
cplusplus |= hasCppFiles(projectPart);
|
||||
}
|
||||
united->updateLanguageFeatures();
|
||||
united->headerPaths = headers;
|
||||
QStringList opts = Utils::createClangOptions(
|
||||
united, getPrefixFileKind(objc, cplusplus));
|
||||
|
||||
Reference in New Issue
Block a user