diff --git a/gui/checkthread.cpp b/gui/checkthread.cpp
index d8ff97d00..b727816c9 100644
--- a/gui/checkthread.cpp
+++ b/gui/checkthread.cpp
@@ -173,6 +173,9 @@ void CheckThread::runAddonsAndTools(const ImportProject::FileSettings *fileSetti
case Standards::CPP17:
args << "-std=c++17";
break;
+ case Standards::CPP20:
+ args << "-std=c++20";
+ break;
};
}
diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp
index 0b8fd6971..73ebeda54 100644
--- a/gui/mainwindow.cpp
+++ b/gui/mainwindow.cpp
@@ -210,6 +210,7 @@ MainWindow::MainWindow(TranslationHandler* th, QSettings* settings) :
mUI.mActionCpp11->setActionGroup(mCppStandardActions);
mUI.mActionCpp14->setActionGroup(mCppStandardActions);
mUI.mActionCpp17->setActionGroup(mCppStandardActions);
+ mUI.mActionCpp20->setActionGroup(mCppStandardActions);
mUI.mActionEnforceC->setActionGroup(mSelectLanguageActions);
mUI.mActionEnforceCpp->setActionGroup(mSelectLanguageActions);
@@ -294,6 +295,7 @@ void MainWindow::loadSettings()
mUI.mActionCpp11->setChecked(standards.cpp == Standards::CPP11);
mUI.mActionCpp14->setChecked(standards.cpp == Standards::CPP14);
mUI.mActionCpp17->setChecked(standards.cpp == Standards::CPP17);
+ mUI.mActionCpp20->setChecked(standards.cpp == Standards::CPP20);
// Main window settings
const bool showMainToolbar = mSettings->value(SETTINGS_TOOLBARS_MAIN_SHOW, true).toBool();
@@ -372,6 +374,8 @@ void MainWindow::saveSettings() const
mSettings->setValue(SETTINGS_STD_CPP, "C++14");
if (mUI.mActionCpp17->isChecked())
mSettings->setValue(SETTINGS_STD_CPP, "C++17");
+ if (mUI.mActionCpp20->isChecked())
+ mSettings->setValue(SETTINGS_STD_CPP, "C++20");
// Main window settings
mSettings->setValue(SETTINGS_TOOLBARS_MAIN_SHOW, mUI.mToolBarMain->isVisible());
diff --git a/gui/mainwindow.ui b/gui/mainwindow.ui
index ca0c47c89..a34a3b4eb 100644
--- a/gui/mainwindow.ui
+++ b/gui/mainwindow.ui
@@ -138,6 +138,7 @@
+