diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-08-14 12:57:33 -0400 |
|---|---|---|
| committer | Tim Foley <tfoleyNV@users.noreply.github.com> | 2019-08-14 09:57:33 -0700 |
| commit | dc493d492d4d9c090dab410a0cb80eca490c32aa (patch) | |
| tree | f0de85ae64d53afd9b9144df23d2450436565d20 /tools/slang-test/test-context.cpp | |
| parent | ea200663ffe33d7b4c739c0d84e9c21a3ae2ffa6 (diff) | |
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
Diffstat (limited to 'tools/slang-test/test-context.cpp')
| -rw-r--r-- | tools/slang-test/test-context.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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; +} + |
