Cppcheck
Public Member Functions | Public Attributes | List of all members
CheckIO::ArgumentInfo Class Reference

Public Member Functions

 ArgumentInfo (const Token *arg, const Settings &settings, bool _isCPP)
 
 ~ArgumentInfo ()
 
 ArgumentInfo (const ArgumentInfo &)=delete
 
ArgumentInfooperator= (const ArgumentInfo &)=delete
 
bool isArrayOrPointer () const
 
bool isComplexType () const
 
bool isKnownType () const
 
bool isStdVectorOrString ()
 
bool isStdContainer (const Token *tok)
 
bool isLibraryType (const Settings &settings) const
 

Public Attributes

const VariablevariableInfo {}
 
const TokentypeToken {}
 
const FunctionfunctionInfo {}
 
TokentempToken {}
 
bool element {}
 
bool _template {}
 
bool address {}
 
bool isCPP {}
 

Detailed Description

Definition at line 76 of file checkio.h.

Constructor & Destructor Documentation

◆ ArgumentInfo() [1/2]

CheckIO::ArgumentInfo::ArgumentInfo ( const Token arg,
const Settings settings,
bool  _isCPP 
)

◆ ~ArgumentInfo()

CheckIO::ArgumentInfo::~ArgumentInfo ( )

Definition at line 1560 of file checkio.cpp.

◆ ArgumentInfo() [2/2]

CheckIO::ArgumentInfo::ArgumentInfo ( const ArgumentInfo )
delete

Member Function Documentation

◆ isArrayOrPointer()

bool CheckIO::ArgumentInfo::isArrayOrPointer ( ) const

Definition at line 1669 of file checkio.cpp.

References Token::Match(), Token::next(), and Token::strAt().

Referenced by CheckIO::checkFormatString().

◆ isComplexType()

bool CheckIO::ArgumentInfo::isComplexType ( ) const

Definition at line 1682 of file checkio.cpp.

References Token::linkAt(), Token::str(), Token::strAt(), and Token::tokAt().

◆ isKnownType()

bool CheckIO::ArgumentInfo::isKnownType ( ) const

Definition at line 1694 of file checkio.cpp.

References Token::Match().

Referenced by CheckIO::checkFormatString().

◆ isLibraryType()

bool CheckIO::ArgumentInfo::isLibraryType ( const Settings settings) const

Definition at line 1704 of file checkio.cpp.

References Settings::library, and Library::podtype().

Referenced by CheckIO::checkFormatString().

◆ isStdContainer()

bool CheckIO::ArgumentInfo::isStdContainer ( const Token tok)

◆ isStdVectorOrString()

bool CheckIO::ArgumentInfo::isStdVectorOrString ( )

◆ operator=()

ArgumentInfo& CheckIO::ArgumentInfo::operator= ( const ArgumentInfo )
delete

Member Data Documentation

◆ _template

bool CheckIO::ArgumentInfo::_template {}

Definition at line 96 of file checkio.h.

◆ address

bool CheckIO::ArgumentInfo::address {}

Definition at line 97 of file checkio.h.

Referenced by ArgumentInfo(), and CheckIO::argumentType().

◆ element

bool CheckIO::ArgumentInfo::element {}

Definition at line 95 of file checkio.h.

Referenced by ArgumentInfo(), CheckIO::argumentType(), and CheckIO::checkFormatString().

◆ functionInfo

const Function* CheckIO::ArgumentInfo::functionInfo {}

Definition at line 93 of file checkio.h.

Referenced by ArgumentInfo().

◆ isCPP

bool CheckIO::ArgumentInfo::isCPP {}

Definition at line 98 of file checkio.h.

Referenced by ArgumentInfo().

◆ tempToken

Token* CheckIO::ArgumentInfo::tempToken {}

Definition at line 94 of file checkio.h.

Referenced by ArgumentInfo().

◆ typeToken

const Token* CheckIO::ArgumentInfo::typeToken {}

◆ variableInfo

const Variable* CheckIO::ArgumentInfo::variableInfo {}

Definition at line 91 of file checkio.h.

Referenced by ArgumentInfo(), CheckIO::argumentType(), and CheckIO::checkFormatString().


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