Skip to content

Commit d6e88d0

Browse files
committed
pre-req: add missing lexing keywords
1 parent dfdc50b commit d6e88d0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

clang/include/clang/Lex/HLSLRootSignatureTokenKinds.def

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ PUNCTUATOR(minus, '-')
7474
// RootElement Keywords:
7575
KEYWORD(RootSignature) // used only for diagnostic messaging
7676
KEYWORD(DescriptorTable)
77+
KEYWORD(RootConstants)
78+
79+
// RootConstants Keywords:
80+
KEYWORD(num32BitConstants)
7781

7882
// DescriptorTable Keywords:
7983
KEYWORD(CBV)

clang/unittests/Lex/LexHLSLRootSignatureTest.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ TEST_F(LexHLSLRootSignatureTest, ValidLexAllTokensTest) {
8787
8888
RootSignature
8989
90-
DescriptorTable
90+
DescriptorTable RootConstants
91+
92+
num32BitConstants
9193
9294
CBV SRV UAV Sampler
9395
space visibility flags

0 commit comments

Comments
 (0)