| 33 | { |
| 34 | |
| 35 | Job::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 | |
| 56 | Job::~Job() |
| 57 | { |
nothing calls this directly
no test coverage detected