forked from qt-creator/qt-creator
CppEditor: Save Clangd settings in human-readable form
in the global settings. Change-Id: I2f90388c138c92f03f78044e225574ded640d4b9 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
180200be66
commit
6cf6f1c230
@@ -36,6 +36,7 @@
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/qtcprocess.h>
|
||||
#include <utils/settingsutils.h>
|
||||
|
||||
#include <QDateTime>
|
||||
#include <QHash>
|
||||
@@ -399,12 +400,12 @@ QVersionNumber ClangdSettings::clangdVersion(const FilePath &clangdFilePath)
|
||||
|
||||
void ClangdSettings::loadSettings()
|
||||
{
|
||||
m_data.fromMap(Core::ICore::settings()->value(clangdSettingsKey()).toMap());
|
||||
Utils::toSettings(clangdSettingsKey(), {}, Core::ICore::settings(), &m_data);
|
||||
}
|
||||
|
||||
void ClangdSettings::saveSettings()
|
||||
{
|
||||
Core::ICore::settings()->setValue(clangdSettingsKey(), m_data.toMap());
|
||||
Utils::fromSettings(clangdSettingsKey(), {}, Core::ICore::settings(), &m_data);
|
||||
}
|
||||
|
||||
#ifdef WITH_TESTS
|
||||
|
Reference in New Issue
Block a user