Skip to content

Commit 67f43ab

Browse files
committed
[libclang/python] Add release notes
Also simplify the enum test
1 parent a3da142 commit 67f43ab

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,8 @@ def test_from_id(self):
4040
def test_unique_kinds(self):
4141
"""Check that no kind name has been used multiple times"""
4242
for enum in self.enums:
43-
seen_names = set()
4443
for id in range(len(enum._kinds)):
4544
try:
46-
kind_name = enum.from_id(id).name
45+
enum.from_id(id).name
4746
except ValueError:
48-
continue
49-
self.assertNotIn(kind_name, seen_names)
50-
seen_names.add(id)
47+
pass

clang/docs/ReleaseNotes.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@ Clang Frontend Potentially Breaking Changes
135135
- The ``hasTypeLoc`` AST matcher will no longer match a ``classTemplateSpecializationDecl``;
136136
existing uses should switch to ``templateArgumentLoc`` or ``hasAnyTemplateArgumentLoc`` instead.
137137

138+
Clang Python Bindings Potentially Breaking Changes
139+
--------------------------------------------------
140+
- Renamed ``CursorKind`` variant 272 from ``OMP_TEAMS_DISTRIBUTE_DIRECTIVE``
141+
to ``OMP_TEAMS_DISTRIBUTE_SIMD_DIRECTIVE``. The previous name was incorrect, it was a duplicate
142+
of variant 271.
143+
- Renamed ``TypeKind`` variant 162 from ``OBJCCLASS`` to ``OBJCTYPEPARAM``.
144+
The previous name was incorrect, it was a duplicate of variant 28.
145+
138146
What's New in Clang |release|?
139147
==============================
140148
Some of the major new features and improvements to Clang are listed

0 commit comments

Comments
 (0)