@@ -135,9 +135,8 @@ TEST_F(ParseHLSLRootSignatureTest, ValidParseEmptyTest) {
135
135
TrivialModuleLoader ModLoader;
136
136
auto PP = createPP (Source, ModLoader);
137
137
138
- hlsl::RootSignatureLexer Lexer (Source);
139
138
SmallVector<RootElement> Elements;
140
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
139
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
141
140
Signature, *PP);
142
141
143
142
// Test no diagnostics produced
@@ -172,9 +171,8 @@ TEST_F(ParseHLSLRootSignatureTest, ValidParseDTClausesTest) {
172
171
TrivialModuleLoader ModLoader;
173
172
auto PP = createPP (Source, ModLoader);
174
173
175
- hlsl::RootSignatureLexer Lexer (Source);
176
174
SmallVector<RootElement> Elements;
177
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
175
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
178
176
Signature, *PP);
179
177
180
178
// Test no diagnostics produced
@@ -278,9 +276,8 @@ TEST_F(ParseHLSLRootSignatureTest, ValidParseStaticSamplerTest) {
278
276
TrivialModuleLoader ModLoader;
279
277
auto PP = createPP (Source, ModLoader);
280
278
281
- hlsl::RootSignatureLexer Lexer (Source);
282
279
SmallVector<RootElement> Elements;
283
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
280
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
284
281
Signature, *PP);
285
282
286
283
// Test no diagnostics produced
@@ -366,9 +363,8 @@ TEST_F(ParseHLSLRootSignatureTest, ValidParseFloatsTest) {
366
363
TrivialModuleLoader ModLoader;
367
364
auto PP = createPP (Source, ModLoader);
368
365
369
- hlsl::RootSignatureLexer Lexer (Source);
370
366
SmallVector<RootElement> Elements;
371
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
367
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
372
368
Signature, *PP);
373
369
374
370
// Test no diagnostics produced
@@ -444,9 +440,8 @@ TEST_F(ParseHLSLRootSignatureTest, ValidSamplerFlagsTest) {
444
440
TrivialModuleLoader ModLoader;
445
441
auto PP = createPP (Source, ModLoader);
446
442
447
- hlsl::RootSignatureLexer Lexer (Source);
448
443
SmallVector<RootElement> Elements;
449
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
444
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
450
445
Signature, *PP);
451
446
452
447
// Test no diagnostics produced
@@ -478,9 +473,8 @@ TEST_F(ParseHLSLRootSignatureTest, ValidParseRootConsantsTest) {
478
473
TrivialModuleLoader ModLoader;
479
474
auto PP = createPP (Source, ModLoader);
480
475
481
- hlsl::RootSignatureLexer Lexer (Source);
482
476
SmallVector<RootElement> Elements;
483
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
477
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
484
478
Signature, *PP);
485
479
486
480
// Test no diagnostics produced
@@ -538,9 +532,8 @@ TEST_F(ParseHLSLRootSignatureTest, ValidParseRootFlagsTest) {
538
532
TrivialModuleLoader ModLoader;
539
533
auto PP = createPP (Source, ModLoader);
540
534
541
- hlsl::RootSignatureLexer Lexer (Source);
542
535
SmallVector<RootElement> Elements;
543
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
536
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
544
537
Signature, *PP);
545
538
546
539
// Test no diagnostics produced
@@ -594,9 +587,8 @@ TEST_F(ParseHLSLRootSignatureTest, ValidParseRootDescriptorsTest) {
594
587
TrivialModuleLoader ModLoader;
595
588
auto PP = createPP (Source, ModLoader);
596
589
597
- hlsl::RootSignatureLexer Lexer (Source);
598
590
SmallVector<RootElement> Elements;
599
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
591
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
600
592
Signature, *PP);
601
593
602
594
// Test no diagnostics produced
@@ -671,9 +663,8 @@ TEST_F(ParseHLSLRootSignatureTest, ValidTrailingCommaTest) {
671
663
TrivialModuleLoader ModLoader;
672
664
auto PP = createPP (Source, ModLoader);
673
665
674
- hlsl::RootSignatureLexer Lexer (Source);
675
666
SmallVector<RootElement> Elements;
676
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
667
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
677
668
Signature, *PP);
678
669
679
670
// Test no diagnostics produced
@@ -844,9 +835,8 @@ TEST_F(ParseHLSLRootSignatureTest, InvalidParseUnexpectedTokenTest) {
844
835
TrivialModuleLoader ModLoader;
845
836
auto PP = createPP (Source, ModLoader);
846
837
847
- hlsl::RootSignatureLexer Lexer (Source);
848
838
SmallVector<RootElement> Elements;
849
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
839
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
850
840
Signature, *PP);
851
841
852
842
// Test correct diagnostic produced
@@ -867,9 +857,8 @@ TEST_F(ParseHLSLRootSignatureTest, InvalidParseInvalidTokenTest) {
867
857
TrivialModuleLoader ModLoader;
868
858
auto PP = createPP (Source, ModLoader);
869
859
870
- hlsl::RootSignatureLexer Lexer (Source);
871
860
SmallVector<RootElement> Elements;
872
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
861
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
873
862
Signature, *PP);
874
863
875
864
// Test correct diagnostic produced - invalid token
@@ -890,9 +879,8 @@ TEST_F(ParseHLSLRootSignatureTest, InvalidParseUnexpectedEndOfStreamTest) {
890
879
TrivialModuleLoader ModLoader;
891
880
auto PP = createPP (Source, ModLoader);
892
881
893
- hlsl::RootSignatureLexer Lexer (Source);
894
882
SmallVector<RootElement> Elements;
895
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
883
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
896
884
Signature, *PP);
897
885
898
886
// Test correct diagnostic produced - end of stream
@@ -918,9 +906,8 @@ TEST_F(ParseHLSLRootSignatureTest, InvalidMissingDTParameterTest) {
918
906
TrivialModuleLoader ModLoader;
919
907
auto PP = createPP (Source, ModLoader);
920
908
921
- hlsl::RootSignatureLexer Lexer (Source);
922
909
SmallVector<RootElement> Elements;
923
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
910
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
924
911
Signature, *PP);
925
912
926
913
// Test correct diagnostic produced
@@ -943,9 +930,8 @@ TEST_F(ParseHLSLRootSignatureTest, InvalidMissingRDParameterTest) {
943
930
TrivialModuleLoader ModLoader;
944
931
auto PP = createPP (Source, ModLoader);
945
932
946
- hlsl::RootSignatureLexer Lexer (Source);
947
933
SmallVector<RootElement> Elements;
948
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
934
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
949
935
Signature, *PP);
950
936
951
937
// Test correct diagnostic produced
@@ -968,9 +954,8 @@ TEST_F(ParseHLSLRootSignatureTest, InvalidMissingRCParameterTest) {
968
954
TrivialModuleLoader ModLoader;
969
955
auto PP = createPP (Source, ModLoader);
970
956
971
- hlsl::RootSignatureLexer Lexer (Source);
972
957
SmallVector<RootElement> Elements;
973
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
958
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
974
959
Signature, *PP);
975
960
976
961
// Test correct diagnostic produced
@@ -995,9 +980,8 @@ TEST_F(ParseHLSLRootSignatureTest, InvalidRepeatedMandatoryDTParameterTest) {
995
980
TrivialModuleLoader ModLoader;
996
981
auto PP = createPP (Source, ModLoader);
997
982
998
- hlsl::RootSignatureLexer Lexer (Source);
999
983
SmallVector<RootElement> Elements;
1000
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
984
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
1001
985
Signature, *PP);
1002
986
1003
987
// Test correct diagnostic produced
@@ -1020,9 +1004,8 @@ TEST_F(ParseHLSLRootSignatureTest, InvalidRepeatedMandatoryRCParameterTest) {
1020
1004
TrivialModuleLoader ModLoader;
1021
1005
auto PP = createPP (Source, ModLoader);
1022
1006
1023
- hlsl::RootSignatureLexer Lexer (Source);
1024
1007
SmallVector<RootElement> Elements;
1025
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
1008
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
1026
1009
Signature, *PP);
1027
1010
1028
1011
// Test correct diagnostic produced
@@ -1047,9 +1030,8 @@ TEST_F(ParseHLSLRootSignatureTest, InvalidRepeatedOptionalDTParameterTest) {
1047
1030
TrivialModuleLoader ModLoader;
1048
1031
auto PP = createPP (Source, ModLoader);
1049
1032
1050
- hlsl::RootSignatureLexer Lexer (Source);
1051
1033
SmallVector<RootElement> Elements;
1052
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
1034
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
1053
1035
Signature, *PP);
1054
1036
1055
1037
// Test correct diagnostic produced
@@ -1076,9 +1058,8 @@ TEST_F(ParseHLSLRootSignatureTest, InvalidRepeatedOptionalRCParameterTest) {
1076
1058
TrivialModuleLoader ModLoader;
1077
1059
auto PP = createPP (Source, ModLoader);
1078
1060
1079
- hlsl::RootSignatureLexer Lexer (Source);
1080
1061
SmallVector<RootElement> Elements;
1081
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
1062
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
1082
1063
Signature, *PP);
1083
1064
1084
1065
// Test correct diagnostic produced
@@ -1102,9 +1083,8 @@ TEST_F(ParseHLSLRootSignatureTest, InvalidLexOverflowedNumberTest) {
1102
1083
TrivialModuleLoader ModLoader;
1103
1084
auto PP = createPP (Source, ModLoader);
1104
1085
1105
- hlsl::RootSignatureLexer Lexer (Source);
1106
1086
SmallVector<RootElement> Elements;
1107
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
1087
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
1108
1088
Signature, *PP);
1109
1089
1110
1090
// Test correct diagnostic produced
@@ -1127,9 +1107,8 @@ TEST_F(ParseHLSLRootSignatureTest, InvalidParseOverflowedNegativeNumberTest) {
1127
1107
TrivialModuleLoader ModLoader;
1128
1108
auto PP = createPP (Source, ModLoader);
1129
1109
1130
- hlsl::RootSignatureLexer Lexer (Source);
1131
1110
SmallVector<RootElement> Elements;
1132
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
1111
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
1133
1112
Signature, *PP);
1134
1113
1135
1114
// Test correct diagnostic produced
@@ -1151,9 +1130,8 @@ TEST_F(ParseHLSLRootSignatureTest, InvalidLexOverflowedFloatTest) {
1151
1130
TrivialModuleLoader ModLoader;
1152
1131
auto PP = createPP (Source, ModLoader);
1153
1132
1154
- hlsl::RootSignatureLexer Lexer (Source);
1155
1133
SmallVector<RootElement> Elements;
1156
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
1134
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
1157
1135
Signature, *PP);
1158
1136
1159
1137
// Test correct diagnostic produced
@@ -1175,9 +1153,8 @@ TEST_F(ParseHLSLRootSignatureTest, InvalidLexNegOverflowedFloatTest) {
1175
1153
TrivialModuleLoader ModLoader;
1176
1154
auto PP = createPP (Source, ModLoader);
1177
1155
1178
- hlsl::RootSignatureLexer Lexer (Source);
1179
1156
SmallVector<RootElement> Elements;
1180
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
1157
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
1181
1158
Signature, *PP);
1182
1159
1183
1160
// Test correct diagnostic produced
@@ -1199,9 +1176,8 @@ TEST_F(ParseHLSLRootSignatureTest, InvalidLexOverflowedDoubleTest) {
1199
1176
TrivialModuleLoader ModLoader;
1200
1177
auto PP = createPP (Source, ModLoader);
1201
1178
1202
- hlsl::RootSignatureLexer Lexer (Source);
1203
1179
SmallVector<RootElement> Elements;
1204
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
1180
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
1205
1181
Signature, *PP);
1206
1182
1207
1183
// Test correct diagnostic produced
@@ -1223,9 +1199,8 @@ TEST_F(ParseHLSLRootSignatureTest, InvalidLexUnderflowFloatTest) {
1223
1199
TrivialModuleLoader ModLoader;
1224
1200
auto PP = createPP (Source, ModLoader);
1225
1201
1226
- hlsl::RootSignatureLexer Lexer (Source);
1227
1202
SmallVector<RootElement> Elements;
1228
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
1203
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
1229
1204
Signature, *PP);
1230
1205
1231
1206
// Test correct diagnostic produced
@@ -1250,9 +1225,8 @@ TEST_F(ParseHLSLRootSignatureTest, InvalidNonZeroFlagsTest) {
1250
1225
TrivialModuleLoader ModLoader;
1251
1226
auto PP = createPP (Source, ModLoader);
1252
1227
1253
- hlsl::RootSignatureLexer Lexer (Source);
1254
1228
SmallVector<RootElement> Elements;
1255
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
1229
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
1256
1230
Signature, *PP);
1257
1231
1258
1232
// Test correct diagnostic produced
0 commit comments