Skip to content

Commit fc97cbc

Browse files
committed
Add new variants
1 parent 71a404a commit fc97cbc

File tree

2 files changed

+61
-3
lines changed

2 files changed

+61
-3
lines changed

clang/bindings/python/clang/cindex.py

Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,6 @@ def is_unexposed(self):
707707
"""Test if this is an unexposed kind."""
708708
return conf.lib.clang_isUnexposed(self) # type: ignore [no-any-return]
709709

710-
711710
###
712711
# Declaration Kinds
713712

@@ -834,7 +833,6 @@ def is_unexposed(self):
834833
# A C++ access specifier decl.
835834
CXX_ACCESS_SPEC_DECL = 39
836835

837-
838836
###
839837
# Reference Kinds
840838

@@ -1435,12 +1433,60 @@ def is_unexposed(self):
14351433
# OpenMP scope directive.
14361434
OMP_SCOPE_DIRECTIVE = 306
14371435

1436+
# OpenMP reverse directive.
1437+
OMPReverseDirective = 307
1438+
1439+
# OpenMP interchange directive.
1440+
OMPInterchangeDirective = 308
1441+
1442+
# OpenMP assume directive.
1443+
OMPAssumeDirective = 309
1444+
14381445
# OpenMP stripe directive.
14391446
OMP_STRIPE_DIRECTIVE = 310
14401447

14411448
# OpenACC Compute Construct.
14421449
OPEN_ACC_COMPUTE_DIRECTIVE = 320
14431450

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

@@ -1559,6 +1605,7 @@ class ExceptionSpecificationKind(BaseEnumeration):
15591605
UNEVALUATED = 6
15601606
UNINSTANTIATED = 7
15611607
UNPARSED = 8
1608+
NOTHROW = 9
15621609

15631610
### Cursors ###
15641611

@@ -2482,6 +2529,13 @@ def spelling(self):
24822529
FLOAT128 = 30
24832530
HALF = 31
24842531
FLOAT16 = 32
2532+
SHORTACCUM = 33
2533+
ACCUM = 34
2534+
LONGACCUM = 35
2535+
USHORTACCUM = 36
2536+
UACCUM = 37
2537+
ULONGACCUM = 38
2538+
BFLOAT16 = 39
24852539
IBM128 = 40
24862540
COMPLEX = 100
24872541
POINTER = 101
@@ -2566,6 +2620,10 @@ def spelling(self):
25662620
ATOMIC = 177
25672621
BTFTAGATTRIBUTED = 178
25682622

2623+
HLSLRESOURCE = 179
2624+
HLSLATTRIBUTEDRESOURCE = 180
2625+
HLSLINLINESPIRV = 181
2626+
25692627
class RefQualifierKind(BaseEnumeration):
25702628
"""Describes a specific ref-qualifier of a type."""
25712629

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)