Commit 4978538
Allow HLSLDecls in dependent DeclContexts (#4114)
Summary of the changes:
- Error for dependent context decl (template decl) now only occurs when templates are not enabled
- Amended faulty test cases revealed by bug fix (tools\clang\test\HLSLFileCheck\hlsl\payload_qualifier\combination.hlsl, tools\clang\test\HLSLFileCheck\hlsl\template\InstantiateHLSLAttributes.hlsl, tools\clang\test\HLSLFileCheck\hlsl\template\missing_typename.hlsl)
- Added test case to reflect bug fix
(tools\clang\test\HLSLFileCheck\hlsl\template\3731-resource-descriptor-heap.hlsl)
Attribution:
Chris Bieneman
Timothy Corringham
Samantha Del Rosario
Co-authored-by: sam-sam98 <[email protected]>1 parent dc401d9 commit 4978538
5 files changed
Lines changed: 52 additions & 229 deletions
File tree
- tools/clang
- lib/Sema
- test/HLSLFileCheck/hlsl
- payload_qualifier
- template
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12425 | 12425 | | |
12426 | 12426 | | |
12427 | 12427 | | |
12428 | | - | |
12429 | | - | |
| 12428 | + | |
| 12429 | + | |
12430 | 12430 | | |
12431 | 12431 | | |
12432 | 12432 | | |
12433 | | - | |
12434 | 12433 | | |
12435 | 12434 | | |
12436 | 12435 | | |
| |||
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
247 | 248 | | |
248 | 249 | | |
249 | 250 | | |
250 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
251 | 258 | | |
252 | | - | |
| 259 | + | |
253 | 260 | | |
254 | 261 | | |
255 | 262 | | |
| |||
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
0 commit comments