Improved singleheader test

Need to make the debug_str provided by the AST type aware to provide as much contextual information as possible (finally got to this point with validation).

Singleheader test now directly calls clang-format to cleanup the reconstructed copy of the singleheader. Its needed to remove any sort of formatting discrepancies found by the parser since its sensistive to that for new-lines, etc.
This commit is contained in:
2023-09-05 13:36:59 -04:00
parent 3e249d9bc5
commit 2200bcde9a
3 changed files with 29 additions and 13 deletions

View File

@ -396,6 +396,7 @@ if ( $test )
build-simple $includes $unit $executable
Push-Location $path_test
Write-Host $path_test
if ( Test-Path( $executable ) ) {
write-host "`nRunning test generator"
$time_taken = Measure-Command { & $executable
@ -458,7 +459,7 @@ if ( $singleheader -and (Test-Path (Join-Path $path_singleheader "gen/gen.hpp"))
format-cpp $path_gen $include $exclude
}
if ( $test )
if ( $test -and $false )
{
$path_gen = join-path $path_test gen
$include = @(