MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / checkAndAddApplication

Method checkAndAddApplication

gui/applicationlist.cpp:186–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186bool ApplicationList::checkAndAddApplication(const QString& appPath, const QString& name, const QString& parameters)
187{
188 if (QFileInfo::exists(appPath) && QFileInfo(appPath).isExecutable()) {
189 Application app;
190 app.setName(name);
191 app.setPath("\"" + appPath + "\"");
192 app.setParameters(parameters);
193 addApplication(app);
194 return true;
195 }
196 return false;
197}
198
199#ifdef _WIN32
200bool ApplicationList::findDefaultWindowsEditor()

Callers

nothing calls this directly

Calls 3

setNameMethod · 0.80
setParametersMethod · 0.80
setPathMethod · 0.45

Tested by

no test coverage detected