Cppcheck
Classes | Functions | Variables
CTU Namespace Reference

Whole program analysis (ctu=Cross Translation Unit) More...

Classes

class  FileInfo
 

Functions

CPPCHECKLIB std::string toString (const std::list< FileInfo::UnsafeUsage > &unsafeUsage)
 
CPPCHECKLIB std::string getFunctionId (const Tokenizer &tokenizer, const Function *function)
 
CPPCHECKLIB FileInfogetFileInfo (const Tokenizer &tokenizer)
 Parse current TU and extract file info. More...
 
CPPCHECKLIB std::list< FileInfo::UnsafeUsagegetUnsafeUsage (const Tokenizer &tokenizer, const Settings &settings, bool(*isUnsafeUsage)(const Settings &settings, const Token *argtok, MathLib::bigint *value))
 
CPPCHECKLIB std::list< FileInfo::UnsafeUsageloadUnsafeUsageListFromXml (const tinyxml2::XMLElement *xmlElement)
 

Variables

int maxCtuDepth = 2
 

Detailed Description

Whole program analysis (ctu=Cross Translation Unit)

Function Documentation

◆ getFileInfo()

CTU::FileInfo * CTU::getFileInfo ( const Tokenizer tokenizer)

◆ getFunctionId()

std::string CTU::getFunctionId ( const Tokenizer tokenizer,
const Function function 
)

Definition at line 60 of file ctu.cpp.

References TokenList::file(), and Tokenizer::list.

Referenced by getFileInfo(), and getUnsafeUsage().

◆ getUnsafeUsage()

std::list< CTU::FileInfo::UnsafeUsage > CTU::getUnsafeUsage ( const Tokenizer tokenizer,
const Settings settings,
bool(*)(const Settings &settings, const Token *argtok, MathLib::bigint *value)  isUnsafeUsage 
)

◆ loadUnsafeUsageListFromXml()

std::list< CTU::FileInfo::UnsafeUsage > CTU::loadUnsafeUsageListFromXml ( const tinyxml2::XMLElement *  xmlElement)

◆ toString()

std::string CTU::toString ( const std::list< FileInfo::UnsafeUsage > &  unsafeUsage)

Definition at line 151 of file ctu.cpp.

Variable Documentation

◆ maxCtuDepth

int CTU::maxCtuDepth = 2
extern

Definition at line 58 of file ctu.cpp.

Referenced by CppCheck::analyseWholeProgram(), findPath(), and ProjectFile::setMaxCtuDepth().