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

Function splitLocalFileLaunchConfigurationEntry

kdevplatform/util/shellutils.cpp:300–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300QStringList splitLocalFileLaunchConfigurationEntry(const ILaunchConfiguration& launchConfiguration,
301 const QUrl& entryUrl, const LaunchConfigurationEntryName& entryName,
302 QString& errorMessage)
303{
304 if (entryUrl.isEmpty() || !entryUrl.isLocalFile()) {
305 errorMessage = i18nc("%1 - entry name, e.g. 'executable path' or 'script path'; %2 - launch configuration name",
306 "No valid %1 specified for the launch configuration '%2'. Aborting start.",
307 entryName.translatable, launchConfiguration.name());
308 qCWarning(UTIL) << "invalid or empty" << ENTRY_NAME_FOR_LAUNCH_CONFIGURATION;
309 return {};
310 }
311
312 return splitLaunchConfigurationEntryToNonemptyList(launchConfiguration, entryUrl.toLocalFile(), entryName,
313 errorMessage);
314}
315
316#undef ENTRY_NAME_FOR_LAUNCH_CONFIGURATION
317

Callers 2

executableMethod · 0.85
scriptMethod · 0.85

Calls 5

isLocalFileMethod · 0.80
toLocalFileMethod · 0.80
isEmptyMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected