Cppcheck
|
Public Member Functions | |
ArgumentInfo (const Token *arg, const Settings &settings, bool _isCPP) | |
~ArgumentInfo () | |
ArgumentInfo (const ArgumentInfo &)=delete | |
ArgumentInfo & | operator= (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 Variable * | variableInfo {} |
const Token * | typeToken {} |
const Function * | functionInfo {} |
Token * | tempToken {} |
bool | element {} |
bool | _template {} |
bool | address {} |
bool | isCPP {} |
Definition at line 1347 of file checkio.cpp.
References address, Token::argumentType(), Token::astParent(), ValueType::BOOL, ValueType::CHAR, Type::classScope, ValueType::constness, ValueType::DOUBLE, Token::eFunction, element, Scope::enumType, Token::eString, Token::eVariable, ValueType::FLOAT, Token::function(), functionInfo, Token::insertToken(), ValueType::INT, Token::isBinaryOp(), Token::isCast(), isCPP, Variable::isEnumType(), ValueType::isIntegral(), Token::isLong(), Token::isSigned(), isStdContainer(), isStdVectorOrString(), Token::isUnsigned(), Token::link(), Token::linkAt(), ValueType::LONG, ValueType::LONGDOUBLE, ValueType::LONGLONG, Token::Match(), Token::next(), Token::originalName(), ValueType::originalTypeName, Settings::platform, ValueType::pointer, Token::previous(), ValueType::SHORT, ValueType::sign, Token::simpleMatch(), Platform::sizeof_long, Platform::sizeof_size_t, Token::str(), Token::strAt(), tempToken, Token::tokAt(), Token::tokType(), Variable::type(), ValueType::type, Variable::typeStartToken(), typeToken, Token::variable(), variableInfo, and ValueType::WCHAR_T.
CheckIO::ArgumentInfo::~ArgumentInfo | ( | ) |
Definition at line 1560 of file checkio.cpp.
|
delete |
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().
bool CheckIO::ArgumentInfo::isComplexType | ( | ) | const |
Definition at line 1682 of file checkio.cpp.
References Token::linkAt(), Token::str(), Token::strAt(), and Token::tokAt().
bool CheckIO::ArgumentInfo::isKnownType | ( | ) | const |
Definition at line 1694 of file checkio.cpp.
References Token::Match().
Referenced by CheckIO::checkFormatString().
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().
bool CheckIO::ArgumentInfo::isStdContainer | ( | const Token * | tok | ) |
Definition at line 1637 of file checkio.cpp.
References Type::derivedFrom, Variable::isStlType(), Token::Match(), stl_container, Token::tokAt(), Variable::type(), Variable::typeStartToken(), and Token::variable().
Referenced by ArgumentInfo().
bool CheckIO::ArgumentInfo::isStdVectorOrString | ( | ) |
Definition at line 1575 of file checkio.cpp.
References Scope::functionList, Token::Match(), Function::name(), Function::retDef, Token::strAt(), Token::tokAt(), and Scope::type.
Referenced by ArgumentInfo().
|
delete |
bool CheckIO::ArgumentInfo::address {} |
Definition at line 97 of file checkio.h.
Referenced by ArgumentInfo(), and CheckIO::argumentType().
bool CheckIO::ArgumentInfo::element {} |
Definition at line 95 of file checkio.h.
Referenced by ArgumentInfo(), CheckIO::argumentType(), and CheckIO::checkFormatString().
const Function* CheckIO::ArgumentInfo::functionInfo {} |
Definition at line 93 of file checkio.h.
Referenced by ArgumentInfo().
bool CheckIO::ArgumentInfo::isCPP {} |
Definition at line 98 of file checkio.h.
Referenced by ArgumentInfo().
Token* CheckIO::ArgumentInfo::tempToken {} |
Definition at line 94 of file checkio.h.
Referenced by ArgumentInfo().
const Token* CheckIO::ArgumentInfo::typeToken {} |
Definition at line 92 of file checkio.h.
Referenced by ArgumentInfo(), CheckIO::argumentType(), CheckIO::checkFormatString(), and CheckIO::getSeverity().
const Variable* CheckIO::ArgumentInfo::variableInfo {} |
Definition at line 91 of file checkio.h.
Referenced by ArgumentInfo(), CheckIO::argumentType(), and CheckIO::checkFormatString().