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

Method isEnumType

lib/symboldatabase.cpp:3725–3730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3723}
3724
3725bool Type::isEnumType() const
3726{
3727 //We explicitly check for "enum" because a forward declared enum doesn't get its own scope
3728 return (classDef && classDef->str() == "enum") ||
3729 (classScope && classScope->type == ScopeType::eEnum);
3730}
3731
3732bool Type::isStructType() const
3733{

Callers 15

ArgumentInfoMethod · 0.80
sizeOfTypeMethod · 0.80
isEnumTypeFunction · 0.80
checkScopeMethod · 0.80
checkScopeForVariableMethod · 0.80
typeMethod · 0.80
checkVariableScopeMethod · 0.80
checkPassByReferenceMethod · 0.80
checkConstVariableMethod · 0.80
isUniqueExpressionFunction · 0.80

Calls 1

strMethod · 0.45

Tested by 7

functionArgs5Method · 0.64
functionArgs6Method · 0.64
functionArgs9Method · 0.64
functionArgs12Method · 0.64
functionArgs13Method · 0.64
enum1Method · 0.64
enum2Method · 0.64