forked from qt-creator/qt-creator
CppTools: Disable Qt keywords for C files
Task-number: QTCREATORBUG-1478 Change-Id: I29afc0f38e5f86ca2c30d5b6551974df68ee7512 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
ec86bf8ca6
commit
b43e22b8f4
@@ -35,9 +35,10 @@ namespace CppTools {
|
|||||||
|
|
||||||
void ProjectPart::updateLanguageFeatures()
|
void ProjectPart::updateLanguageFeatures()
|
||||||
{
|
{
|
||||||
const bool hasQt = qtVersion != NoQt;
|
const bool hasCxx = languageVersion >= CXX98;
|
||||||
|
const bool hasQt = hasCxx && qtVersion != NoQt;
|
||||||
languageFeatures.cxx11Enabled = languageVersion >= CXX11;
|
languageFeatures.cxx11Enabled = languageVersion >= CXX11;
|
||||||
languageFeatures.cxxEnabled = languageVersion >= CXX98;
|
languageFeatures.cxxEnabled = hasCxx;
|
||||||
languageFeatures.c99Enabled = languageVersion >= C99;
|
languageFeatures.c99Enabled = languageVersion >= C99;
|
||||||
languageFeatures.objCEnabled = languageExtensions.testFlag(ObjectiveCExtensions);
|
languageFeatures.objCEnabled = languageExtensions.testFlag(ObjectiveCExtensions);
|
||||||
languageFeatures.qtEnabled = hasQt;
|
languageFeatures.qtEnabled = hasQt;
|
||||||
|
Reference in New Issue
Block a user