Cppcheck
|
A class containing error data for one error. More...
#include <erroritem.h>
Public Member Functions | |
ErrorItem () | |
ErrorItem (const ErrorMessage &errmsg) | |
QString | toString () const |
Convert error item to string. More... | |
QString | tool () const |
Static Public Member Functions | |
static bool | sameCID (const ErrorItem &errorItem1, const ErrorItem &errorItem2) |
Compare "CID". More... | |
Public Attributes | |
QString | file0 |
QString | errorId |
Severity | severity |
bool | inconclusive |
QString | summary |
QString | message |
int | cwe |
unsigned long long | hash |
QList< QErrorPathItem > | errorPath |
QString | symbolNames |
QString | sinceDate |
QString | tags |
A class containing error data for one error.
The paths are stored with internal ("/") separators. Only when we show the path or copy if for user (to clipboard) we convert to native separators. Full path is stored instead of relative path for flexibility. It is easy to get the relative path from full path when needed.
Definition at line 72 of file erroritem.h.
ErrorItem::ErrorItem | ( | ) |
Definition at line 37 of file erroritem.cpp.
References inconclusive, and none.
|
explicit |
Definition at line 44 of file erroritem.cpp.
References ErrorMessage::callStack, errorPath, and inconclusive.
Compare "CID".
Definition at line 87 of file erroritem.cpp.
References errorId, errorPath, file0, hash, inconclusive, message, and severity.
Referenced by indexOf().
QString ErrorItem::tool | ( | ) | const |
Definition at line 62 of file erroritem.cpp.
References CLANG_ANALYZER, CLANG_TIDY, and errorId.
Referenced by ResultsView::error().
QString ErrorItem::toString | ( | ) | const |
Convert error item to string.
Definition at line 73 of file erroritem.cpp.
References errorId, errorPath, inconclusive, message, severity, summary, and GuiSeverity::toString().
Referenced by ResultsView::debugError().
int ErrorItem::cwe |
Definition at line 90 of file erroritem.h.
Referenced by ResultsTree::addErrorItem(), XmlReportV2::readError(), and ResultsTree::readErrorItem().
QString ErrorItem::errorId |
Definition at line 85 of file erroritem.h.
Referenced by ResultsTree::addErrorItem(), ResultsView::error(), ResultsView::handleCriticalError(), CheckThread::parseClangErrors(), XmlReportV2::readError(), ResultsTree::readErrorItem(), sameCID(), tool(), and toString().
QList<QErrorPathItem> ErrorItem::errorPath |
Definition at line 92 of file erroritem.h.
Referenced by ResultsTree::addErrorItem(), ErrorItem(), CheckThread::parseClangErrors(), XmlReportV2::readError(), ResultsTree::readErrorItem(), sameCID(), and toString().
QString ErrorItem::file0 |
Definition at line 84 of file erroritem.h.
Referenced by ResultsTree::addErrorItem(), ResultsView::handleCriticalError(), CheckThread::parseClangErrors(), XmlReportV2::readError(), ResultsTree::readErrorItem(), and sameCID().
unsigned long long ErrorItem::hash |
Definition at line 91 of file erroritem.h.
Referenced by ResultsTree::addErrorItem(), XmlReportV2::readError(), ResultsTree::readErrorItem(), and sameCID().
bool ErrorItem::inconclusive |
Definition at line 87 of file erroritem.h.
Referenced by ResultsTree::addErrorItem(), XmlReportV2::readError(), ResultsTree::readErrorItem(), sameCID(), and toString().
QString ErrorItem::message |
Definition at line 89 of file erroritem.h.
Referenced by ResultsTree::addErrorItem(), ResultsView::error(), CheckThread::parseClangErrors(), XmlReportV2::readError(), ResultsTree::readErrorItem(), sameCID(), and toString().
Severity ErrorItem::severity |
Definition at line 86 of file erroritem.h.
Referenced by ResultsTree::addErrorItem(), ResultsView::error(), ResultsView::handleCriticalError(), CheckThread::parseClangErrors(), XmlReportV2::readError(), ResultsTree::readErrorItem(), sameCID(), and toString().
QString ErrorItem::sinceDate |
Definition at line 96 of file erroritem.h.
Referenced by ResultsTree::addErrorItem(), XmlReportV2::readError(), and ResultsTree::readErrorItem().
QString ErrorItem::summary |
Definition at line 88 of file erroritem.h.
Referenced by ResultsTree::addErrorItem(), XmlReportV2::readError(), ResultsTree::readErrorItem(), and toString().
QString ErrorItem::symbolNames |
Definition at line 93 of file erroritem.h.
Referenced by ResultsTree::addErrorItem().
QString ErrorItem::tags |
Definition at line 97 of file erroritem.h.
Referenced by XmlReportV2::readError(), ResultsTree::readErrorItem(), and ResultsTree::updateFromOldReport().