| 516 | } |
| 517 | |
| 518 | static bool isIntegral(std::string_view type) { |
| 519 | static const std::unordered_set<std::string_view> types = { |
| 520 | "bool", "byte", "uint8", "int8", "uint16", "int16", |
| 521 | "uint32", "int32", "uint64", "int64", "size_t", |
| 522 | }; |
| 523 | return types.contains(type); |
| 524 | } |
| 525 | |
| 526 | static const EnumDecl* findEnum(const File& file, std::string_view name) { |
| 527 | for (const auto& decl : file.enums) if (decl.name == name) return &decl; |
nothing calls this directly
no outgoing calls
no test coverage detected