Skip to content

Commit 7f5a19e

Browse files
committed
Reorder lines
1 parent 4b1d2bb commit 7f5a19e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/bindings/python/tests/cindex/test_enums.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ def test_all_variants(self):
6565
enum_variant_map = {}
6666
# For all enums in self.enums, extract all enum variants defined in Index.h
6767
for cursor in tu.cursor.walk_preorder():
68-
python_enum = cenum_to_pythonenum.get(cursor.type.spelling)
6968
if cursor.kind == CursorKind.ENUM_CONSTANT_DECL:
69+
python_enum = cenum_to_pythonenum.get(cursor.type.spelling)
7070
if python_enum not in enum_variant_map:
7171
enum_variant_map[python_enum] = dict()
7272
enum_variant_map[python_enum][cursor.enum_value] = cursor.spelling

0 commit comments

Comments
 (0)