Skip to content

Commit 808ea38

Browse files
committed
Add new variants
1 parent cee0067 commit 808ea38

File tree

2 files changed

+62
-1
lines changed

2 files changed

+62
-1
lines changed

clang/bindings/python/clang/cindex.py

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,12 +1435,60 @@ def is_unexposed(self):
14351435
# OpenMP scope directive.
14361436
OMP_SCOPE_DIRECTIVE = 306
14371437

1438+
# OpenMP reverse directive.
1439+
OMPReverseDirective = 307
1440+
1441+
# OpenMP interchange directive.
1442+
OMPInterchangeDirective = 308
1443+
1444+
# OpenMP assume directive.
1445+
OMPAssumeDirective = 309
1446+
14381447
# OpenMP stripe directive.
14391448
OMP_STRIPE_DIRECTIVE = 310
14401449

14411450
# OpenACC Compute Construct.
14421451
OPEN_ACC_COMPUTE_DIRECTIVE = 320
14431452

1453+
# OpenACC Loop Construct.
1454+
OpenACCLoopConstruct = 321
1455+
1456+
# OpenACC Combined Constructs.
1457+
OpenACCCombinedConstruct = 322
1458+
1459+
# OpenACC data Construct.
1460+
OpenACCDataConstruct = 323
1461+
1462+
# OpenACC enter data Construct.
1463+
OpenACCEnterDataConstruct = 324
1464+
1465+
# OpenACC exit data Construct.
1466+
OpenACCExitDataConstruct = 325
1467+
1468+
# OpenACC host_data Construct.
1469+
OpenACCHostDataConstruct = 326
1470+
1471+
# OpenACC wait Construct.
1472+
OpenACCWaitConstruct = 327
1473+
1474+
# OpenACC init Construct.
1475+
OpenACCInitConstruct = 328
1476+
1477+
# OpenACC shutdown Construct.
1478+
OpenACCShutdownConstruct = 329
1479+
1480+
# OpenACC set Construct.
1481+
OpenACCSetConstruct = 330
1482+
1483+
# OpenACC update Construct.
1484+
OpenACCUpdateConstruct = 331
1485+
1486+
# OpenACC atomic Construct.
1487+
OpenACCAtomicConstruct = 332
1488+
1489+
# OpenACC cache Construct.
1490+
OpenACCCacheConstruct = 333
1491+
14441492
###
14451493
# Other Kinds
14461494

@@ -1559,6 +1607,7 @@ class ExceptionSpecificationKind(BaseEnumeration):
15591607
UNEVALUATED = 6
15601608
UNINSTANTIATED = 7
15611609
UNPARSED = 8
1610+
NOTHROW = 9
15621611

15631612
### Cursors ###
15641613

@@ -2483,6 +2532,14 @@ def spelling(self):
24832532
OBJCSEL = 29
24842533
FLOAT128 = 30
24852534
HALF = 31
2535+
FLOAT16 = 32
2536+
SHORTACCUM = 33
2537+
ACCUM = 34
2538+
LONGACCUM = 35
2539+
USHORTACCUM = 36
2540+
UACCUM = 37
2541+
ULONGACCUM = 38
2542+
BFLOAT16 = 39
24862543
IBM128 = 40
24872544
COMPLEX = 100
24882545
POINTER = 101
@@ -2567,6 +2624,10 @@ def spelling(self):
25672624
ATOMIC = 177
25682625
BTFTAGATTRIBUTED = 178
25692626

2627+
HLSLRESOURCE = 179
2628+
HLSLATTRIBUTEDRESOURCE = 180
2629+
HLSLINLINESPIRV = 181
2630+
25702631
class RefQualifierKind(BaseEnumeration):
25712632
"""Describes a specific ref-qualifier of a type."""
25722633

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,5 @@ def test_all_variants(self):
9494
self.assertEqual(
9595
missing_python_kinds,
9696
set(),
97-
f"Please ensure these variants are defined inside {enum} in cindex.py.",
97+
f"Please ensure these are defined in {enum} in cindex.py.",
9898
)

0 commit comments

Comments
 (0)