forked from qt-creator/qt-creator
Utils: Move C++ language details from ProjectExplorer to Utils
We want to use them in the backend processes too so it's nice to share them in Utils. A concrete size was added too because they should be serialized. Change-Id: Id5eb8f46643d5159f034fc9559f68a08d7e5847a Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -1162,9 +1162,9 @@ ProjectPart::Ptr CppModelManager::fallbackProjectPart()
|
||||
|
||||
// Do not activate ObjectiveCExtensions since this will lead to the
|
||||
// "objective-c++" language option for a project-less *.cpp file.
|
||||
part->languageExtensions = ProjectExplorer::LanguageExtension::All;
|
||||
part->languageExtensions &= ~ProjectExplorer::LanguageExtensions(
|
||||
ProjectExplorer::LanguageExtension::ObjectiveC);
|
||||
part->languageExtensions = Utils::LanguageExtension::All;
|
||||
part->languageExtensions &= ~Utils::LanguageExtensions(
|
||||
Utils::LanguageExtension::ObjectiveC);
|
||||
|
||||
part->qtVersion = ProjectPart::Qt5;
|
||||
part->updateLanguageFeatures();
|
||||
|
||||
Reference in New Issue
Block a user