summaryrefslogtreecommitdiff
path: root/source/slang/syntax-visitors.h
diff options
context:
space:
mode:
authorTim Foley <tfoley@nvidia.com>2017-06-19 10:37:09 -0700
committerTim Foley <tfoley@nvidia.com>2017-06-19 10:37:09 -0700
commit91d796da81aade1669abb90b72d4013e5480fb2d (patch)
treeaf1fffcf4cc3ad7368fb9ae2c1b23b34890dbca8 /source/slang/syntax-visitors.h
parentbb9ca29160f5d95f3860504262693ea650d96be5 (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.h8
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