MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / type

Method type

lib/token.cpp:2334–2342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2332}
2333
2334void Token::type(const ::Type *t)
2335{
2336 mImpl->mType = t;
2337 if (t) {
2338 tokType(eType);
2339 isEnumType(mImpl->mType->isEnumType());
2340 } else if (mTokType == eType)
2341 tokType(eName);
2342}
2343
2344const ::Type* Token::typeOf(const Token* tok, const Token** typeTok)
2345{

Callers 15

checkRecursiveMethod · 0.80
ArgumentInfoMethod · 0.80
isStdVectorOrStringMethod · 0.80
isStdContainerMethod · 0.80
isComplexTypeMethod · 0.80
getAllocationTypeMethod · 0.80
checkMethod · 0.80

Calls 3

tokTypeFunction · 0.85
isEnumTypeMethod · 0.80
isEnumTypeFunction · 0.70

Tested by 15

findVariableType1Method · 0.64
findVariableType2Method · 0.64
findVariableType3Method · 0.64
functionArgs5Method · 0.64
functionArgs6Method · 0.64
functionArgs7Method · 0.64
functionArgs8Method · 0.64
functionArgs9Method · 0.64
functionArgs12Method · 0.64
functionArgs13Method · 0.64
namespaces4Method · 0.64
symboldatabase37Method · 0.64