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

Function findEnumerator

lib/symboldatabase.h:1087–1092  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1085 }
1086
1087 const Enumerator * findEnumerator(const std::string & name) const {
1088 auto it = std::find_if(enumeratorList.cbegin(), enumeratorList.cend(), [&](const Enumerator& i) {
1089 return i.name->str() == name;
1090 });
1091 return it == enumeratorList.end() ? nullptr : &*it;
1092 }
1093
1094 bool isNestedIn(const Scope * outer) const {
1095 if (!outer)

Callers 1

Calls 2

strMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected