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

Method Job

plugins/cppcheck/job.cpp:35–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33{
34
35Job::Job(const Parameters& params, QObject* parent)
36 : KDevelop::OutputExecuteJob(parent)
37 , m_timer(new QElapsedTimer)
38 , m_parser(new CppcheckParser)
39 , m_showXmlOutput(params.showXmlOutput)
40 , m_projectRootPath(params.projectRootPath())
41{
42 setJobName(i18n("Cppcheck Analysis (%1)", prettyPathName(params.checkPath)));
43
44 setCapabilities(KJob::Killable);
45 setStandardToolView(KDevelop::IOutputView::AnalyzeView);
46 setBehaviours(KDevelop::IOutputView::AllowUserClose | KDevelop::IOutputView::AutoScroll);
47
48 setProperties(KDevelop::OutputExecuteJob::JobProperty::DisplayStdout);
49 setProperties(KDevelop::OutputExecuteJob::JobProperty::DisplayStderr);
50 setProperties(KDevelop::OutputExecuteJob::JobProperty::PostProcessOutput);
51
52 *this << params.commandLine();
53 qCDebug(KDEV_CPPCHECK) << "checking path" << params.checkPath;
54}
55
56Job::~Job()
57{

Callers

nothing calls this directly

Calls 3

projectRootPathMethod · 0.80
prettyPathNameFunction · 0.70
commandLineMethod · 0.45

Tested by

no test coverage detected