| 
    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 SuppressionList::Suppression::getText | ( | ) | const | 
Definition at line 392 of file suppressions.cpp.
References startsWith().
Referenced by ProjectFileDialog::addSingleSuppression().
      
  | 
  inline | 
Definition at line 124 of file suppressions.h.
Referenced by SuppressionList::addSuppression().
| bool SuppressionList::Suppression::isMatch | ( | const ErrorMessage & | errmsg | ) | 
Definition at line 383 of file suppressions.cpp.
References SuppressionList::isSuppressed().
      
  | 
  inline | 
Definition at line 128 of file suppressions.h.
References errorId, fileName, hash, lineNumber, symbolName, and thisAndNextLine.
Referenced by SuppressionList::addSuppression().
| bool SuppressionList::Suppression::isSuppressed | ( | const ErrorMessage & | errmsg | ) | const | 
Definition at line 345 of file suppressions.cpp.
References SuppressionList::block, SuppressionList::ErrorMessage::errorId, SuppressionList::ErrorMessage::getFileName(), SuppressionList::ErrorMessage::hash, SuppressionList::ErrorMessage::lineNumber, SuppressionList::macro, SuppressionList::ErrorMessage::macroNames, matchglob(), SuppressionList::ErrorMessage::symbolNames, and SuppressionList::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 SuppressionList::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 297 of file suppressions.cpp.
References startsWith().
Referenced by parseInlineSuppressionCommentToken().
| bool SuppressionList::Suppression::checked {} | 
Definition at line 148 of file suppressions.h.
| std::string SuppressionList::Suppression::errorId | 
Definition at line 137 of file suppressions.h.
Referenced by SuppressionList::addSuppression(), SuppressionList::addSuppressionLine(), NewSuppressionDialog::getSuppression(), ImportProject::importCppcheckGuiProject(), isSameParameters(), operator<(), operator==(), parseInlineSuppressionCommentToken(), SuppressionList::parseMultiSuppressComment(), SuppressionList::parseXmlFile(), ProjectFile::readSuppressions(), NewSuppressionDialog::setSuppression(), ResultsTree::suppressHash(), and MainWindow::suppressIds().
| std::string SuppressionList::Suppression::fileName | 
Definition at line 138 of file suppressions.h.
Referenced by SuppressionList::addSuppression(), SuppressionList::addSuppressionLine(), NewSuppressionDialog::getSuppression(), ImportProject::importCppcheckGuiProject(), isSameParameters(), operator<(), operator==(), SuppressionList::parseXmlFile(), ProjectFile::readSuppressions(), NewSuppressionDialog::setSuppression(), and ResultsTree::suppressHash().
| std::size_t SuppressionList::Suppression::hash {} | 
Definition at line 145 of file suppressions.h.
Referenced by SuppressionList::addSuppression(), ImportProject::importCppcheckGuiProject(), isSameParameters(), operator<(), operator==(), SuppressionList::parseXmlFile(), ProjectFile::readSuppressions(), and ResultsTree::suppressHash().
| int SuppressionList::Suppression::lineBegin = NO_LINE | 
Definition at line 140 of file suppressions.h.
Referenced by addInlineSuppressions(), and operator==().
| int SuppressionList::Suppression::lineEnd = NO_LINE | 
Definition at line 141 of file suppressions.h.
Referenced by operator==().
| int SuppressionList::Suppression::lineNumber = NO_LINE | 
Definition at line 139 of file suppressions.h.
Referenced by addInlineSuppressions(), SuppressionList::addSuppressionLine(), NewSuppressionDialog::getSuppression(), ImportProject::importCppcheckGuiProject(), isSameParameters(), operator<(), operator==(), parseInlineSuppressionCommentToken(), SuppressionList::parseXmlFile(), ProjectFile::readSuppressions(), NewSuppressionDialog::setSuppression(), and ResultsTree::suppressHash().
| std::string SuppressionList::Suppression::macroName | 
Definition at line 144 of file suppressions.h.
Referenced by operator<(), and operator==().
| bool SuppressionList::Suppression::matched {} | 
Definition at line 147 of file suppressions.h.
Referenced by SuppressionList::addSuppression().
| std::string SuppressionList::Suppression::symbolName | 
Definition at line 143 of file suppressions.h.
Referenced by NewSuppressionDialog::getSuppression(), ImportProject::importCppcheckGuiProject(), isSameParameters(), operator<(), operator==(), SuppressionList::parseMultiSuppressComment(), SuppressionList::parseXmlFile(), ProjectFile::readSuppressions(), and NewSuppressionDialog::setSuppression().
| bool SuppressionList::Suppression::thisAndNextLine {} | 
Definition at line 146 of file suppressions.h.
Referenced by isSameParameters(), and operator<().
| Type SuppressionList::Suppression::type = Type::unique | 
Definition at line 142 of file suppressions.h.
Referenced by operator==(), and parseInlineSuppressionCommentToken().