summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-03-08 16:32:37 -0800
committerGitHub <noreply@github.com>2024-03-08 16:32:37 -0800
commitbc3dc0e82d52faa45ffe73448e86208f137b8536 (patch)
tree1894d39b02ff7fecb6a3ad9ff6b6b0f34d5d0bc2 /tools
parent6f8a20688e0c4b989db152b4d06aeab04fac0567 (diff)
Parser and module finding logic fixes. (#3720)
* Fix parsing logic of `struct` decl. Fixes #3716. * Allow `loadModule` to find modules with underscores. * Fix test.
Diffstat (limited to 'tools')
-rw-r--r--tools/gfx-unit-test/link-time-type.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/gfx-unit-test/link-time-type.cpp b/tools/gfx-unit-test/link-time-type.cpp
index 7f470c619..a522b6903 100644
--- a/tools/gfx-unit-test/link-time-type.cpp
+++ b/tools/gfx-unit-test/link-time-type.cpp
@@ -49,8 +49,7 @@ namespace gfx_test
)";
const char* module1Src = R"(
import ifoo;
- export struct Foo : IFoo = FooImpl;
- )";
+ export struct Foo : IFoo = FooImpl;)";
Slang::ComPtr<slang::ISession> slangSession;
SLANG_RETURN_ON_FAIL(device->getSlangSession(slangSession.writeRef()));
Slang::ComPtr<slang::IBlob> diagnosticsBlob;