Cppcheck
|
File name and line number. More...
#include <errorlogger.h>
Public Member Functions | |
FileLocation (const std::string &file, int line, unsigned int column) | |
FileLocation (const std::string &file, std::string info, int line, unsigned int column) | |
FileLocation (const Token *tok, const TokenList *tokenList) | |
FileLocation (const Token *tok, std::string info, const TokenList *tokenList) | |
std::string | getfile (bool convert=true) const |
Return the filename. More... | |
std::string | getOrigFile (bool convert=true) const |
Filename with the whole path (no –rp) More... | |
void | setfile (std::string file) |
Set the filename. More... | |
std::string | stringify () const |
const std::string & | getinfo () const |
Public Attributes | |
unsigned int | fileIndex |
int | line |
unsigned int | column |
Private Attributes | |
std::string | mOrigFileName |
std::string | mFileName |
std::string | mInfo |
File name and line number.
Internally paths are stored with / separator. When getting the filename it is by default converted to native separators.
Definition at line 55 of file errorlogger.h.
|
inline |
Definition at line 57 of file errorlogger.h.
|
inline |
Definition at line 60 of file errorlogger.h.
Definition at line 710 of file errorlogger.cpp.
ErrorMessage::FileLocation::FileLocation | ( | const Token * | tok, |
std::string | info, | ||
const TokenList * | tokenList | ||
) |
Definition at line 714 of file errorlogger.cpp.
std::string ErrorMessage::FileLocation::getfile | ( | bool | convert = true | ) | const |
Return the filename.
convert | If true convert path to native separators. |
Definition at line 718 of file errorlogger.cpp.
References Path::toNativeSeparators().
|
inline |
Definition at line 95 of file errorlogger.h.
std::string ErrorMessage::FileLocation::getOrigFile | ( | bool | convert = true | ) | const |
Filename with the whole path (no –rp)
convert | If true convert path to native separators. |
Definition at line 725 of file errorlogger.cpp.
References Path::toNativeSeparators().
void ErrorMessage::FileLocation::setfile | ( | std::string | file | ) |
Set the filename.
file | Filename to set. |
Definition at line 732 of file errorlogger.cpp.
References Path::fromNativeSeparators(), and Path::simplifyPath().
Referenced by ErrorMessage::deserialize().
std::string ErrorMessage::FileLocation::stringify | ( | ) | const |
Definition at line 738 of file errorlogger.cpp.
References SuppressionList::Suppression::NO_LINE, and Path::toNativeSeparators().
unsigned int ErrorMessage::FileLocation::column |
Definition at line 93 of file errorlogger.h.
Referenced by plistLoc().
unsigned int ErrorMessage::FileLocation::fileIndex |
Definition at line 91 of file errorlogger.h.
Referenced by plistLoc().
int ErrorMessage::FileLocation::line |
Definition at line 92 of file errorlogger.h.
Referenced by plistLoc().
|
private |
Definition at line 101 of file errorlogger.h.
|
private |
Definition at line 102 of file errorlogger.h.
|
private |
Definition at line 100 of file errorlogger.h.