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

Function isAnonymous

lib/symboldatabase.h:1082–1085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1080 }
1081
1082 bool isAnonymous() const {
1083 // TODO: Check if class/struct is anonymous
1084 return className.size() > 9 && startsWith(className,"Anonymous") && std::isdigit(className[9]);
1085 }
1086
1087 const Enumerator * findEnumerator(const std::string & name) const {
1088 auto it = std::find_if(enumeratorList.cbegin(), enumeratorList.cend(), [&](const Enumerator& i) {

Callers

nothing calls this directly

Calls 2

startsWithFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected