Skip to content

Commit 4513515

Browse files
author
Finn Plummer
committed
pre-req: Add unbounded keyword to lexer
1 parent 16973f4 commit 4513515

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

clang/include/clang/Lex/HLSLRootSignatureTokenKinds.def

+7
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
#endif
2828

2929
// Defines the various types of enum
30+
#ifndef UNBOUNDED_ENUM
31+
#define UNBOUNDED_ENUM(NAME, LIT) ENUM(NAME, LIT)
32+
#endif
3033
#ifndef DESCRIPTOR_RANGE_OFFSET_ENUM
3134
#define DESCRIPTOR_RANGE_OFFSET_ENUM(NAME, LIT) ENUM(NAME, LIT)
3235
#endif
@@ -87,6 +90,9 @@ KEYWORD(flags)
8790
KEYWORD(numDescriptors)
8891
KEYWORD(offset)
8992

93+
// Unbounded Enum:
94+
UNBOUNDED_ENUM(unbounded, "unbounded")
95+
9096
// Descriptor Range Offset Enum:
9197
DESCRIPTOR_RANGE_OFFSET_ENUM(DescriptorRangeOffsetAppend, "DESCRIPTOR_RANGE_OFFSET_APPEND")
9298

@@ -118,6 +124,7 @@ SHADER_VISIBILITY_ENUM(Mesh, "SHADER_VISIBILITY_MESH")
118124
#undef DESCRIPTOR_RANGE_FLAG_ENUM_ON
119125
#undef ROOT_DESCRIPTOR_FLAG_ENUM
120126
#undef DESCRIPTOR_RANGE_OFFSET_ENUM
127+
#undef UNBOUNDED_ENUM
121128
#undef ENUM
122129
#undef KEYWORD
123130
#undef PUNCTUATOR

clang/unittests/Lex/LexHLSLRootSignatureTest.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ TEST_F(LexHLSLRootSignatureTest, ValidLexAllTokensTest) {
9393
space visibility flags
9494
numDescriptors offset
9595
96+
unbounded
9697
DESCRIPTOR_RANGE_OFFSET_APPEND
9798
9899
DATA_VOLATILE

0 commit comments

Comments
 (0)