From dc493d492d4d9c090dab410a0cb80eca490c32aa Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Wed, 14 Aug 2019 12:57:33 -0400 Subject: Small improvements around C/C++ testing (#1017) * * Simplify some of test code around CPPCompiler * Test using 'callable' with pass-through * Small cpu doc improvements * Improvements to Clang output parsing. * Remove temporary file (base filename) . * Improve handling of external errors - handle severity. * On error dumping out to 'actual' file for runCPPCompilerCompile. * Small fixes. Set the source language type correctly for pass thru. * Remove warning for test for clang backend c --- tools/slang-test/test-context.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tools/slang-test/test-context.cpp') diff --git a/tools/slang-test/test-context.cpp b/tools/slang-test/test-context.cpp index 5581ab6db..5da998f03 100644 --- a/tools/slang-test/test-context.cpp +++ b/tools/slang-test/test-context.cpp @@ -102,3 +102,10 @@ CPPCompilerSet* TestContext::getCPPCompilerSet() } return cppCompilerSet; } + +Slang::CPPCompiler* TestContext::getDefaultCPPCompiler() +{ + CPPCompilerSet* set = getCPPCompilerSet(); + return set ? set->getDefaultCompiler() : nullptr; +} + -- cgit v1.2.3