Cppcheck
|
#include <ctu.h>
Classes | |
class | CallBase |
class | FunctionCall |
struct | Location |
class | NestedCall |
struct | UnsafeUsage |
Public Types | |
enum class | InvalidValueType { null , uninit , bufferOverflow } |
Public Member Functions | |
std::string | toString () const override |
void | loadFromXml (const tinyxml2::XMLElement *xmlElement) |
std::map< std::string, std::list< const CallBase * > > | getCallsMap () const |
Public Member Functions inherited from Check::FileInfo | |
FileInfo ()=default | |
virtual | ~FileInfo ()=default |
Static Public Member Functions | |
static std::list< ErrorMessage::FileLocation > | getErrorPath (InvalidValueType invalidValue, const UnsafeUsage &unsafeUsage, const std::map< std::string, std::list< const CallBase * >> &callsMap, const char info[], const FunctionCall **const functionCallPtr, bool warning) |
Public Attributes | |
std::list< FunctionCall > | functionCalls |
std::list< NestedCall > | nestedCalls |
|
strong |
std::map< std::string, std::list< const CTU::FileInfo::CallBase * > > CTU::FileInfo::getCallsMap | ( | ) | const |
Definition at line 247 of file ctu.cpp.
References functionCalls, and nestedCalls.
Referenced by CheckBufferOverrun::analyseWholeProgram(), CheckNullPointer::analyseWholeProgram(), and CheckUninitVar::analyseWholeProgram().
|
static |
Definition at line 554 of file ctu.cpp.
References CTU::FileInfo::CallBase::callFunctionName, CTU::FileInfo::Location::column, CTU::FileInfo::Location::fileName, findPath(), getOrdinalText(), CTU::FileInfo::Location::lineNumber, CTU::FileInfo::UnsafeUsage::location, CTU::FileInfo::CallBase::location, CTU::FileInfo::UnsafeUsage::myArgNr, CTU::FileInfo::UnsafeUsage::myArgumentName, CTU::FileInfo::UnsafeUsage::myId, null, replaceStr(), CTU::FileInfo::UnsafeUsage::value, and warning.
Referenced by CheckNullPointer::analyseWholeProgram(), CheckUninitVar::analyseWholeProgram(), and CheckBufferOverrun::analyseWholeProgram1().
void CTU::FileInfo::loadFromXml | ( | const tinyxml2::XMLElement * | xmlElement | ) |
Definition at line 232 of file ctu.cpp.
References functionCalls, CTU::FileInfo::FunctionCall::loadFromXml(), CTU::FileInfo::NestedCall::loadFromXml(), and nestedCalls.
Referenced by CppCheck::analyseWholeProgram().
|
overridevirtual |
Reimplemented from Check::FileInfo.
Definition at line 71 of file ctu.cpp.
References functionCalls, and nestedCalls.
std::list<FunctionCall> CTU::FileInfo::functionCalls |
Definition at line 126 of file ctu.h.
Referenced by CppCheck::analyseWholeProgram(), getCallsMap(), loadFromXml(), and toString().
std::list<NestedCall> CTU::FileInfo::nestedCalls |
Definition at line 127 of file ctu.h.
Referenced by CppCheck::analyseWholeProgram(), getCallsMap(), loadFromXml(), and toString().