<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/diagnostics/gh-38-fs.hlsl, branch master</title>
<subtitle>Making it easier to work with shaders</subtitle>
<id>https://git.yummers.dev/slang.git/atom?h=master</id>
<link rel='self' href='https://git.yummers.dev/slang.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/'/>
<updated>2017-08-15T16:33:36+00:00</updated>
<entry>
<title>Improve diagnostics for overlapping/conflicting bindings</title>
<updated>2017-08-15T16:33:36+00:00</updated>
<author>
<name>Tim Foley</name>
<email>tfoley@nvidia.com</email>
</author>
<published>2017-08-15T16:29:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=4a94f39020dcc143f9a1d8f5c57ba77a828ead61'/>
<id>urn:sha1:4a94f39020dcc143f9a1d8f5c57ba77a828ead61</id>
<content type='text'>
Closes #38

- Change overlapping bindings case from error to warning (it is *technically* allowed in HLSL/GLSL)

- Make diagnostic messages for these cases include a note to point at the "other" declaration in each case, so that user can more easily isolate the problem

- Unrelated fix: make sure `slangc` sets up its diagnostic callback *before* parsing command-line options so that error messages output during options parsing will be visible

- Unrelated fix: make sure that formatting for diagnostic messages doesn't print diagnostic ID for notes (all have IDs &lt; 0).
  - Note: eventually I'd like to not print diagnostic IDs at all (I think they are cluttering up our output), but doing that requires touching all the test cases...
</content>
</entry>
</feed>
