Skip to content

Commit 6a39f06

Browse files
committed
Add TypeKind aliases from Index.h
1 parent 804550a commit 6a39f06

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

clang/bindings/python/clang/cindex.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2546,6 +2546,8 @@ def spelling(self):
25462546
ULONGACCUM = 38
25472547
BFLOAT16 = 39
25482548
IBM128 = 40
2549+
FIRSTBUILTIN = VOID
2550+
LASTBUILTIN = IBM128
25492551
COMPLEX = 100
25502552
POINTER = 101
25512553
BLOCKPOINTER = 102

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,6 @@ def test_from_id(self):
3434
with self.assertRaises(ValueError):
3535
enum.from_id(-1)
3636

37-
def test_duplicate_ids(self):
38-
"""Check that no two kinds have the same id"""
39-
for enum in self.enums:
40-
num_declared_variants = len(enum._member_map_.keys())
41-
num_unique_variants = len(list(enum))
42-
self.assertEqual(num_declared_variants, num_unique_variants)
43-
4437
def test_all_variants(self):
4538
"""Check that all libclang enum values are also defined in cindex.py"""
4639
cenum_to_pythonenum = {

0 commit comments

Comments
 (0)