mirror of
https://github.com/google/googletest.git
synced 2025-12-05 07:14:15 +08:00
Fix scoped enum not working in gmock-gen.py
This commit is contained in:
@@ -1264,6 +1264,9 @@ class AstBuilder(object):
|
||||
return self._GetNestedType(Union)
|
||||
|
||||
def handle_enum(self):
|
||||
token = self._GetNextToken()
|
||||
if not (token.token_type == tokenize.NAME and token.name == 'class'):
|
||||
self._AddBackToken(token)
|
||||
return self._GetNestedType(Enum)
|
||||
|
||||
def handle_auto(self):
|
||||
|
||||
Reference in New Issue
Block a user