Lines Matching refs:enum_name
112 enum_name = m.group(2)
114 enum_name = '::'.join(enum_lines.enclosing_classes) + '::' + enum_name
115 _ENUMS[enum_name] = []
116 _NAMESPACES[enum_name] = '::'.join(enum_lines.namespaces)
117 _ENUM_CLASSES[enum_name] = is_enum_class
177 enum_value = enum_name + '::' + enum_value
182 _ENUMS[enum_name].append((enum_value, enum_text))
201 for enum_name in _ENUMS:
204 namespaces = _NAMESPACES[enum_name].split('::')
209 'std::ostream& operator<<(std::ostream& os, %s rhs) {' % enum_name)
211 for (enum_value, enum_text) in _ENUMS[enum_name]:
213 if not _ENUM_CLASSES[enum_name]:
215 ' default: os << "%s[" << static_cast<int>(rhs) << "]"; break;' % enum_name)