MCPcopy Create free account
hub / github.com/KDE/kdevelop / splitNonemptyLaunchConfigurationEntry

Function splitNonemptyLaunchConfigurationEntry

kdevplatform/util/shellutils.cpp:283–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283QStringList splitNonemptyLaunchConfigurationEntry(const ILaunchConfiguration& launchConfiguration,
284 const QString& entryText,
285 const LaunchConfigurationEntryName& entryName, QString& errorMessage)
286{
287 if (entryText.isEmpty()) {
288 errorMessage = i18nc(
289 "%1 - entry name, e.g. 'external terminal command' or 'interpreter command'; "
290 "%2 - launch configuration name",
291 "Empty %1 specified for the launch configuration '%2'. Aborting start.", entryName.translatable,
292 launchConfiguration.name());
293 qCWarning(UTIL) << "empty" << ENTRY_NAME_FOR_LAUNCH_CONFIGURATION;
294 return {};
295 }
296
297 return splitLaunchConfigurationEntryToNonemptyList(launchConfiguration, entryText, entryName, errorMessage);
298}
299
300QStringList splitLocalFileLaunchConfigurationEntry(const ILaunchConfiguration& launchConfiguration,
301 const QUrl& entryUrl, const LaunchConfigurationEntryName& entryName,

Callers 2

terminalMethod · 0.85
interpreterMethod · 0.85

Calls 3

isEmptyMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected