Skip to content

Commit 78a0cbe

Browse files
committed
Add new variants
1 parent be61f91 commit 78a0cbe

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
@@ -708,7 +708,6 @@ def is_unexposed(self):
708708
"""Test if this is an unexposed kind."""
709709
return conf.lib.clang_isUnexposed(self) # type: ignore [no-any-return]
710710

711-
712711
###
713712
# Declaration Kinds
714713

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

838-
839837
###
840838
# Reference Kinds
841839

@@ -1436,12 +1434,60 @@ def is_unexposed(self):
14361434
# OpenMP scope directive.
14371435
OMP_SCOPE_DIRECTIVE = 306
14381436

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

14421449
# OpenACC Compute Construct.
14431450
OPEN_ACC_COMPUTE_DIRECTIVE = 320
14441451

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

@@ -1560,6 +1606,7 @@ class ExceptionSpecificationKind(BaseEnumeration):
15601606
UNEVALUATED = 6
15611607
UNINSTANTIATED = 7
15621608
UNPARSED = 8
1609+
NOTHROW = 9
15631610

15641611
### Cursors ###
15651612

@@ -2492,6 +2539,13 @@ def spelling(self):
24922539
FLOAT128 = 30
24932540
HALF = 31
24942541
FLOAT16 = 32
2542+
SHORTACCUM = 33
2543+
ACCUM = 34
2544+
LONGACCUM = 35
2545+
USHORTACCUM = 36
2546+
UACCUM = 37
2547+
ULONGACCUM = 38
2548+
BFLOAT16 = 39
24952549
IBM128 = 40
24962550
COMPLEX = 100
24972551
POINTER = 101
@@ -2576,6 +2630,10 @@ def spelling(self):
25762630
ATOMIC = 177
25772631
BTFTAGATTRIBUTED = 178
25782632

2633+
HLSLRESOURCE = 179
2634+
HLSLATTRIBUTEDRESOURCE = 180
2635+
HLSLINLINESPIRV = 181
2636+
25792637
class RefQualifierKind(BaseEnumeration):
25802638
"""Describes a specific ref-qualifier of a type."""
25812639

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

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

0 commit comments

Comments
 (0)