| 
    Cppcheck
    
   | 
 
This is an interface, which the class responsible of error logging should implement. More...
#include <errorlogger.h>
  
Public Member Functions | |
| ErrorLogger ()=default | |
| virtual | ~ErrorLogger ()=default | 
| virtual void | reportOut (const std::string &outmsg, Color c=Color::Reset)=0 | 
| Information about progress is directed here.  More... | |
| virtual void | reportErr (const ErrorMessage &msg)=0 | 
| Information about found errors and warnings is directed here.  More... | |
| virtual void | reportProgress (const std::string &filename, const char stage[], const std::size_t value) | 
| Report progress to client.  More... | |
Static Public Member Functions | |
| static std::string | callStackToString (const std::list< ErrorMessage::FileLocation > &callStack) | 
| static std::string | toxml (const std::string &str) | 
| Convert XML-sensitive characters into XML entities.  More... | |
| static std::string | plistHeader (const std::string &version, const std::vector< std::string > &files) | 
| static std::string | plistData (const ErrorMessage &msg) | 
| static const char * | plistFooter () | 
| static bool | isCriticalErrorId (const std::string &id) | 
Static Private Attributes | |
| static const std::set< std::string > | mCriticalErrorIds | 
This is an interface, which the class responsible of error logging should implement.
Definition at line 214 of file errorlogger.h.
      
  | 
  default | 
      
  | 
  virtualdefault | 
      
  | 
  static | 
Definition at line 699 of file errorlogger.cpp.
Referenced by ErrorMessage::toString().
      
  | 
  inlinestatic | 
Definition at line 264 of file errorlogger.h.
Referenced by ResultsTree::contextMenuEvent(), ResultsView::handleCriticalError(), and CppCheck::reportErr().
      
  | 
  static | 
Definition at line 815 of file errorlogger.cpp.
References ErrorMessage::callStack, ErrorMessage::id, plistLoc(), ErrorMessage::severity, severityToString(), ErrorMessage::shortMessage(), and toxml().
Referenced by CppCheck::reportErr().
      
  | 
  inlinestatic | 
Definition at line 258 of file errorlogger.h.
Referenced by CppCheck::checkFile(), and CppCheck::~CppCheck().
      
  | 
  static | 
Definition at line 785 of file errorlogger.cpp.
References toxml().
Referenced by CppCheck::checkFile().
      
  | 
  pure virtual | 
Information about found errors and warnings is directed here.
Override this to receive the errormessages.
| msg | Location and other information about the found error. | 
Implemented in CppCheck, ThreadResult, and SyncLogForwarder.
Referenced by CheckClass::analyseWholeProgram(), CheckNullPointer::analyseWholeProgram(), CheckUninitVar::analyseWholeProgram(), CheckBufferOverrun::analyseWholeProgram1(), bailoutInternal(), SymbolDatabase::debugMessage(), SymbolDatabase::debugSymbolDatabase(), Preprocessor::error(), ProcessExecutor::handleRead(), CppCheck::internalError(), Preprocessor::missingInclude(), SyncLogForwarder::reportErr(), CppCheck::reportErr(), CheckMemoryLeak::reportErr(), Check::reportError(), ProcessExecutor::reportInternalChildErr(), SuppressionList::reportUnmatchedSuppressions(), SymbolDatabase::returnImplicitIntError(), TemplateSimplifier::simplifyTemplateInstantiations(), TemplateSimplifier::simplifyTemplates(), Tokenizer::simplifyTypedefCpp(), Tokenizer::simplifyUsingError(), CheckUnusedFunctions::unusedFunctionError(), TemplateSimplifier::useDefaultArgumentValues(), SymbolDatabase::validateExecutableScopes(), valueFlowConditionExpressions(), and valueFlowDebug().
      
  | 
  pure virtual | 
Information about progress is directed here.
Override this to receive the progress messages.
| outmsg | Message to show e.g. "Checking main.cpp..." | 
Implemented in CppCheck, ThreadResult, and SyncLogForwarder.
Referenced by CppCheck::checkClang(), CppCheck::checkFile(), ProcessExecutor::handleRead(), SyncLogForwarder::reportOut(), CppCheck::reportOut(), and Executor::reportStatus().
      
  | 
  inlinevirtual | 
Report progress to client.
| filename | main file that is checked | 
| stage | for example preprocess / tokenize / simplify / check | 
| value | progress value (0-100) | 
Reimplemented in CppCheck.
Definition at line 241 of file errorlogger.h.
Referenced by SymbolDatabase::createSymbolDatabaseFindAllScopes(), CppCheck::reportProgress(), TemplateSimplifier::simplifyTemplateInstantiations(), Tokenizer::simplifyTypedefCpp(), and Tokenizer::simplifyUsing().
      
  | 
  static | 
Convert XML-sensitive characters into XML entities.
| str | The input string containing XML-sensitive characters | 
Definition at line 751 of file errorlogger.cpp.
Referenced by CheckUnusedFunctions::analyzerInfo(), CppCheck::checkClang(), CppCheck::checkFile(), ValueType::dump(), TemplateSimplifier::TokenAndName::dump(), Preprocessor::dump(), SuppressionList::dump(), Tokenizer::dump(), CppCheck::getDumpFileContentsRawTokens(), plistData(), plistHeader(), SymbolDatabase::printXml(), CTU::FileInfo::CallBase::toBaseXmlString(), CTU::FileInfo::UnsafeUsage::toString(), and CTU::FileInfo::FunctionCall::toXmlString().
      
  | 
  staticprivate | 
Definition at line 269 of file errorlogger.h.