MCPcopy Create free account
hub / github.com/Samsung/UTopia / collectEnums

Method collectEnums

lib/analysis/TypeAnalyzer.cpp:23–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void TypeAnalyzer::collectEnums(const ASTUnit &Unit) {
24 const std::string Tag = "Tag";
25 for (const auto &Node :
26 match(enumDecl().bind(Tag),
27 *const_cast<ASTContext *>(&Unit.getASTContext()))) {
28 auto *Record = Node.getNodeAs<EnumDecl>(Tag);
29 if (!Record)
30 continue;
31
32 Report.addEnum(*Record);
33 }
34}

Callers

nothing calls this directly

Calls 1

addEnumMethod · 0.80

Tested by

no test coverage detected