|
Cppcheck
|
#include "errorlogger.h"#include "color.h"#include "cppcheck.h"#include "path.h"#include "settings.h"#include "suppressions.h"#include "token.h"#include "tokenlist.h"#include "utils.h"#include <algorithm>#include <array>#include <cassert>#include <cctype>#include <cstring>#include <fstream>#include <iomanip>#include <sstream>#include <string>#include <unordered_map>#include <utility>#include "xml.h"Go to the source code of this file.
Functions | |
| static void | serializeString (std::string &oss, const std::string &str) |
| static std::string | readCode (const std::string &file, int linenr, int column, const char endl[]) |
| static void | replaceSpecialChars (std::string &source) |
| static void | replace (std::string &source, const std::unordered_map< std::string, std::string > &substitutionMap) |
| static void | replaceColors (std::string &source) |
| static std::string | plistLoc (const char indent[], const ErrorMessage::FileLocation &loc) |
| std::string | replaceStr (std::string s, const std::string &from, const std::string &to) |
| Replace substring. More... | |
| void | substituteTemplateFormatStatic (std::string &templateFormat) |
| replaces the static parts of the location template More... | |
| void | substituteTemplateLocationStatic (std::string &templateLocation) |
| replaces the static parts of the location template More... | |
|
static |
Definition at line 804 of file errorlogger.cpp.
References ErrorMessage::FileLocation::column, ErrorMessage::FileLocation::fileIndex, indent(), and ErrorMessage::FileLocation::line.
Referenced by ErrorLogger::plistData().
|
static |
Definition at line 527 of file errorlogger.cpp.
Referenced by ErrorMessage::toString().
|
static |
Definition at line 568 of file errorlogger.cpp.
Referenced by Variables::alias(), doAssignment(), Path::fromNativeSeparators(), CheckCondition::invalidTestForOverflow(), SuppressionList::parseFile(), replaceColors(), Path::toNativeSeparators(), and ErrorMessage::toString().
|
static |
Definition at line 587 of file errorlogger.cpp.
References Bold, Dim, FgBlue, FgDefault, FgGreen, FgMagenta, FgRed, replace(), Reset, and toString().
Referenced by substituteTemplateFormatStatic(), and substituteTemplateLocationStatic().
|
static |
Definition at line 543 of file errorlogger.cpp.
Referenced by substituteTemplateFormatStatic(), and substituteTemplateLocationStatic().
|
static |
Definition at line 236 of file errorlogger.cpp.
Referenced by ErrorMessage::serialize().