From 91d796da81aade1669abb90b72d4013e5480fb2d Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Mon, 19 Jun 2017 10:37:09 -0700 Subject: 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. --- source/slang/syntax-visitors.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source/slang/syntax-visitors.h') 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 -- cgit v1.2.3