Cppcheck
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CTU::FileInfo Class Reference

#include <ctu.h>

Inheritance diagram for CTU::FileInfo:
Check::FileInfo

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::FileLocationgetErrorPath (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< FunctionCallfunctionCalls
 
std::list< NestedCallnestedCalls
 

Detailed Description

Definition at line 52 of file ctu.h.

Member Enumeration Documentation

◆ InvalidValueType

Enumerator
null 
uninit 
bufferOverflow 

Definition at line 54 of file ctu.h.

Member Function Documentation

◆ getCallsMap()

std::map< std::string, std::list< const CTU::FileInfo::CallBase * > > CTU::FileInfo::getCallsMap ( ) const

◆ getErrorPath()

std::list< ErrorMessage::FileLocation > CTU::FileInfo::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 
)
static

◆ loadFromXml()

void CTU::FileInfo::loadFromXml ( const tinyxml2::XMLElement *  xmlElement)

◆ toString()

std::string CTU::FileInfo::toString ( ) const
overridevirtual

Reimplemented from Check::FileInfo.

Definition at line 71 of file ctu.cpp.

References functionCalls, and nestedCalls.

Member Data Documentation

◆ functionCalls

std::list<FunctionCall> CTU::FileInfo::functionCalls

Definition at line 126 of file ctu.h.

Referenced by CppCheck::analyseWholeProgram(), getCallsMap(), loadFromXml(), and toString().

◆ nestedCalls

std::list<NestedCall> CTU::FileInfo::nestedCalls

Definition at line 127 of file ctu.h.

Referenced by CppCheck::analyseWholeProgram(), getCallsMap(), loadFromXml(), and toString().


The documentation for this class was generated from the following files: