|
Cppcheck
|
#include <suppressions.h>
Public Types | |
| enum | { NO_LINE = -1 } |
Public Member Functions | |
| Suppression ()=default | |
| Suppression (std::string id, std::string file, int line=NO_LINE) | |
| bool | operator< (const Suppression &other) const |
| bool | operator== (const Suppression &other) const |
| bool | parseComment (std::string comment, std::string *errorMessage) |
| Parse inline suppression in comment. More... | |
| bool | isSuppressed (const ErrorMessage &errmsg) const |
| bool | isMatch (const ErrorMessage &errmsg) |
| std::string | getText () const |
| bool | isLocal () const |
| bool | isSameParameters (const Suppression &other) const |
Public Attributes | |
| std::string | errorId |
| std::string | fileName |
| int | lineNumber = NO_LINE |
| int | lineBegin = NO_LINE |
| int | lineEnd = NO_LINE |
| Type | type = Type::unique |
| std::string | symbolName |
| std::string | macroName |
| std::size_t | hash {} |
| bool | thisAndNextLine {} |
| bool | matched {} |
| bool | checked {} |
Definition at line 66 of file suppressions.h.
| anonymous enum |
| Enumerator | |
|---|---|
| NO_LINE | |
Definition at line 150 of file suppressions.h.
|
default |
|
inline |
Definition at line 68 of file suppressions.h.
| std::string Suppressions::Suppression::getText | ( | ) | const |
Definition at line 391 of file suppressions.cpp.
References startsWith().
Referenced by ProjectFileDialog::addSingleSuppression().
|
inline |
Definition at line 124 of file suppressions.h.
Referenced by Suppressions::addSuppression().
| bool Suppressions::Suppression::isMatch | ( | const ErrorMessage & | errmsg | ) |
Definition at line 382 of file suppressions.cpp.
References Suppressions::isSuppressed().
|
inline |
Definition at line 128 of file suppressions.h.
References errorId, fileName, hash, lineNumber, symbolName, and thisAndNextLine.
Referenced by Suppressions::addSuppression().
| bool Suppressions::Suppression::isSuppressed | ( | const ErrorMessage & | errmsg | ) | const |
Definition at line 344 of file suppressions.cpp.
References Suppressions::block, Suppressions::ErrorMessage::errorId, Suppressions::ErrorMessage::getFileName(), Suppressions::ErrorMessage::hash, Suppressions::ErrorMessage::lineNumber, Suppressions::macro, Suppressions::ErrorMessage::macroNames, matchglob(), Suppressions::ErrorMessage::symbolNames, and Suppressions::unique.
|
inline |
Definition at line 70 of file suppressions.h.
References errorId, fileName, hash, lineNumber, macroName, symbolName, and thisAndNextLine.
|
inline |
Definition at line 88 of file suppressions.h.
References errorId, fileName, hash, lineBegin, lineEnd, lineNumber, macroName, symbolName, and type.
| bool Suppressions::Suppression::parseComment | ( | std::string | comment, |
| std::string * | errorMessage | ||
| ) |
Parse inline suppression in comment.
| comment | the full comment text |
| errorMessage | output parameter for error message (wrong suppression attribute) |
Definition at line 296 of file suppressions.cpp.
References startsWith().
Referenced by parseInlineSuppressionCommentToken().
| bool Suppressions::Suppression::checked {} |
Definition at line 148 of file suppressions.h.
| std::string Suppressions::Suppression::errorId |
Definition at line 137 of file suppressions.h.
Referenced by Suppressions::addSuppression(), Suppressions::addSuppressionLine(), NewSuppressionDialog::getSuppression(), ImportProject::importCppcheckGuiProject(), isSameParameters(), operator<(), operator==(), parseInlineSuppressionCommentToken(), Suppressions::parseMultiSuppressComment(), Suppressions::parseXmlFile(), ProjectFile::readSuppressions(), NewSuppressionDialog::setSuppression(), ResultsTree::suppressHash(), and MainWindow::suppressIds().
| std::string Suppressions::Suppression::fileName |
Definition at line 138 of file suppressions.h.
Referenced by Suppressions::addSuppression(), Suppressions::addSuppressionLine(), NewSuppressionDialog::getSuppression(), ImportProject::importCppcheckGuiProject(), isSameParameters(), operator<(), operator==(), Suppressions::parseXmlFile(), ProjectFile::readSuppressions(), NewSuppressionDialog::setSuppression(), and ResultsTree::suppressHash().
| std::size_t Suppressions::Suppression::hash {} |
Definition at line 145 of file suppressions.h.
Referenced by Suppressions::addSuppression(), ImportProject::importCppcheckGuiProject(), isSameParameters(), operator<(), operator==(), Suppressions::parseXmlFile(), ProjectFile::readSuppressions(), and ResultsTree::suppressHash().
| int Suppressions::Suppression::lineBegin = NO_LINE |
Definition at line 140 of file suppressions.h.
Referenced by addInlineSuppressions(), and operator==().
| int Suppressions::Suppression::lineEnd = NO_LINE |
Definition at line 141 of file suppressions.h.
Referenced by operator==().
| int Suppressions::Suppression::lineNumber = NO_LINE |
Definition at line 139 of file suppressions.h.
Referenced by addInlineSuppressions(), Suppressions::addSuppressionLine(), NewSuppressionDialog::getSuppression(), ImportProject::importCppcheckGuiProject(), isSameParameters(), operator<(), operator==(), parseInlineSuppressionCommentToken(), Suppressions::parseXmlFile(), ProjectFile::readSuppressions(), NewSuppressionDialog::setSuppression(), and ResultsTree::suppressHash().
| std::string Suppressions::Suppression::macroName |
Definition at line 144 of file suppressions.h.
Referenced by operator<(), and operator==().
| bool Suppressions::Suppression::matched {} |
Definition at line 147 of file suppressions.h.
Referenced by Suppressions::addSuppression().
| std::string Suppressions::Suppression::symbolName |
Definition at line 143 of file suppressions.h.
Referenced by NewSuppressionDialog::getSuppression(), ImportProject::importCppcheckGuiProject(), isSameParameters(), operator<(), operator==(), Suppressions::parseMultiSuppressComment(), Suppressions::parseXmlFile(), ProjectFile::readSuppressions(), and NewSuppressionDialog::setSuppression().
| bool Suppressions::Suppression::thisAndNextLine {} |
Definition at line 146 of file suppressions.h.
Referenced by isSameParameters(), and operator<().
| Type Suppressions::Suppression::type = Type::unique |
Definition at line 142 of file suppressions.h.
Referenced by operator==(), and parseInlineSuppressionCommentToken().