static Core::Id configIdForProject(ClangProjectSettings &projectSettings) { if (projectSettings.useGlobalConfig()) return CppTools::codeModelSettings()->clangDiagnosticConfigId(); Core::Id configId = projectSettings.warningConfigId(); if (!configId.isValid()) { configId = CppTools::codeModelSettings()->clangDiagnosticConfigId(); projectSettings.setWarningConfigId(configId); } return configId; }
static Core::Id configIdForProject(const ClangProjectSettings &projectSettings) { return projectSettings.useGlobalWarningConfig() ? Core::Id(GLOBAL_PROXY_CONFIG_ID) : projectSettings.warningConfigId(); }