We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b1d2bb commit 7f5a19eCopy full SHA for 7f5a19e
clang/bindings/python/tests/cindex/test_enums.py
@@ -65,8 +65,8 @@ def test_all_variants(self):
65
enum_variant_map = {}
66
# For all enums in self.enums, extract all enum variants defined in Index.h
67
for cursor in tu.cursor.walk_preorder():
68
- python_enum = cenum_to_pythonenum.get(cursor.type.spelling)
69
if cursor.kind == CursorKind.ENUM_CONSTANT_DECL:
+ python_enum = cenum_to_pythonenum.get(cursor.type.spelling)
70
if python_enum not in enum_variant_map:
71
enum_variant_map[python_enum] = dict()
72
enum_variant_map[python_enum][cursor.enum_value] = cursor.spelling
0 commit comments