diff options
| author | Tim Foley <tfoley@nvidia.com> | 2017-06-19 10:37:09 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2017-06-19 10:37:09 -0700 |
| commit | 91d796da81aade1669abb90b72d4013e5480fb2d (patch) | |
| tree | af1fffcf4cc3ad7368fb9ae2c1b23b34890dbca8 /source/slang/syntax-visitors.h | |
| parent | bb9ca29160f5d95f3860504262693ea650d96be5 (diff) | |
Make sure that semantic checks always apply to Slang files
That is, even if hte user specified the `-no-checking` option (or the equivalent via API), we still want/need to apply full semantic checks to Slang code, so that cross-compilation will be possible.
Diffstat (limited to 'source/slang/syntax-visitors.h')
| -rw-r--r-- | source/slang/syntax-visitors.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/slang/syntax-visitors.h b/source/slang/syntax-visitors.h index f83334155..dbcbf2781 100644 --- a/source/slang/syntax-visitors.h +++ b/source/slang/syntax-visitors.h @@ -12,11 +12,13 @@ namespace Slang class ShaderCompiler; class ShaderLinkInfo; class ShaderSymbol; + class TranslationUnitOptions; SyntaxVisitor* CreateSemanticsVisitor( - DiagnosticSink* err, - CompileOptions const& options, - CompileRequest* request); + DiagnosticSink* err, + CompileOptions const& options, + TranslationUnitOptions const& translationUnitOptions, + CompileRequest* request); // Look for a module that matches the given name: // either one we've loaded already, or one we |
