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

Method enum1

test/testsymboldatabase.cpp:6276–6284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6274 }
6275
6276 void enum1() {
6277 GET_SYMBOL_DB("enum BOOL { FALSE, TRUE }; enum BOOL b;");
6278
6279 /* there is a enum scope with the name BOOL */
6280 ASSERT(db && db->scopeList.back().type == ScopeType::eEnum && db->scopeList.back().className == "BOOL");
6281
6282 /* b is a enum variable, type is BOOL */
6283 ASSERT(db && db->getVariableFromVarId(1)->isEnumType());
6284 }
6285
6286 void enum2() {
6287 GET_SYMBOL_DB("enum BOOL { FALSE, TRUE } b;");

Callers

nothing calls this directly

Calls 1

isEnumTypeMethod · 0.80

Tested by

no test coverage detected