void CNESCsvResult::handleMessage(SLintContext & context, const Location & loc, const SLintChecker & checker, const unsigned sub, const std::wstring & msg) { if (context.getSciFile().get() != current.get()) { printRes(); current = context.getSciFile(); } if (const ast::FunctionDec * fd = context.topFn()) { res[checker.getId(sub)].emplace_back(loc, msg, fd->getSymbol().getName()); } else { res[checker.getId(sub)].emplace_back(loc, msg, L""); } }
void SLintScilabResult::handleMessage(SLintContext & context, const Location & loc, const SLintChecker & checker, const std::wstring & msg) { auto & mmap = results[context.getFilename()]; mmap.emplace(loc, checker.getId() + L": " + msg); }
void SLintScilabOut::handleMessage(SLintContext & context, const Location & loc, const SLintChecker & checker, const std::wstring & msg) { results[context.getFilename()][checker.getId()].emplace_back(loc, msg); }
void SLintXmlResult::print(const SLintChecker & checker) { (*out) << " <Checker name=\"" << checker.getName() << "\" id=\"" << getStr(checker.getId()) << "\"/>\n"; }