Lines Matching refs:enum_name
65 enum_name = m.group(2)
67 enum_name = '::'.join(enclosing_classes) + '::' + enum_name
68 _ENUMS[enum_name] = []
69 _NAMESPACES[enum_name] = '::'.join(namespaces)
70 _ENUM_CLASSES[enum_name] = is_enum_class
162 enum_value = enum_name + '::' + enum_value
167 _ENUMS[enum_name].append((enum_value, enum_text))
185 for enum_name in _ENUMS:
188 namespaces = _NAMESPACES[enum_name].split('::')
192 print('std::ostream& operator<<(std::ostream& os, const %s& rhs) {' % enum_name)
194 for (enum_value, enum_text) in _ENUMS[enum_name]:
196 if not _ENUM_CLASSES[enum_name]:
197 print(' default: os << "%s[" << static_cast<int>(rhs) << "]"; break;' % enum_name)