QString ClangDiagnosticConfigsModel::displayNameWithBuiltinIndication(const ClangDiagnosticConfig &config) { return config.isReadOnly() ? QCoreApplication::translate("ClangDiagnosticConfigsModel", "%1 [built-in]") .arg(config.displayName()) : config.displayName(); }
static QString displayNameWithBuiltinIndication(const ClangDiagnosticConfig &config, const Core::Id &exceptionalConfig) { if (exceptionalConfig == config.id()) return config.displayName(); return ClangDiagnosticConfigsModel::displayNameWithBuiltinIndication(config); }