You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change fixes issues with intrinsic lookup caused by not correctly
respecting the using declaration(s) that impact unqualified lookups.
This probably isn't a perfect solution because I'm sure there's some
nuance of unqualified lookups in C++ that I'm not handling, but this
does respect scoped using directives and allows us to get things
working.
Additionally this change disables emitting some "declared here" notes
when the source location referred to is invalid.
Fixes#7495
PixelShadeR ps < int foo=1;> = ps1; // Case insensitive! /* expected-error {{unknown type name 'PixelShadeR'; did you mean 'PixelShader'?}} expected-warning {{effect object ignored - effect syntax is deprecated}} expected-warning {{possible effect annotation ignored - effect syntax is deprecated}} fxc-pass {{}} */
VertexShadeR vs; // Case insensitive! /* expected-error {{unknown type name 'VertexShadeR'; did you mean 'VertexShader'?}} expected-warning {{effect object ignored - effect syntax is deprecated}} fxc-pass {{}} */
Copy file name to clipboardExpand all lines: tools/clang/test/SemaHLSL/raytracings.hlsl
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -12,14 +12,14 @@ void run() {
12
12
RAY_FLAG_CULL_OPAQUE +
13
13
RAY_FLAG_CULL_NON_OPAQUE;
14
14
15
-
rayFlags += RAY_FLAG_INVALID; /* expected-note@? {{'RAY_FLAG_NONE' declared here}} expected-error {{use of undeclared identifier 'RAY_FLAG_INVALID'; did you mean 'RAY_FLAG_NONE'?}} */
15
+
rayFlags += RAY_FLAG_INVALID; /* expected-error {{use of undeclared identifier 'RAY_FLAG_INVALID'; did you mean 'RAY_FLAG_NONE'?}} */
hitKindFlag += HIT_KIND_INVALID; /* expected-note@? {{'HIT_KIND_NONE' declared here}} expected-error {{use of undeclared identifier 'HIT_KIND_INVALID'; did you mean 'HIT_KIND_NONE'?}} */
22
+
hitKindFlag += HIT_KIND_INVALID; /* expected-error {{use of undeclared identifier 'HIT_KIND_INVALID'; did you mean 'HIT_KIND_NONE'?}} */
0 commit comments