Skip to content

Commit a891219

Browse files
committed
Compiler: Remove passes from SanitizeVisitor
this is to get a better view of the work remaining
1 parent 9285e42 commit a891219

File tree

10 files changed

+279
-547
lines changed

10 files changed

+279
-547
lines changed

.github/workflows/coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,14 @@ jobs:
9898
- name: Run unit tests and generate coverage output (Linux)
9999
if: runner.os == 'Linux'
100100
run: |
101-
xmake run UnitTests
101+
xmake run UnitTests sanitizing
102102
gcovr -b -x coverage.out -s -f 'include/NZSL/.*' -f 'src/NZSL/.*' -e 'src/NZSL/SpirV/SpirvData.cpp' build/.objs/
103103
104104
- name: Run unit tests and generate coverage output (Windows)
105105
if: runner.os == 'Windows'
106106
shell: cmd
107107
run: |
108-
"C:\Program Files\OpenCppCoverage\OpenCppCoverage.exe" --export_type cobertura:coverage.out --sources "ShaderLang\include\NZSL\*" --sources "ShaderLang\src\NZSL\*" --excluded_sources "ShaderLang\src\NZSL\SpirV\SpirvData.cpp" --modules "ShaderLang\bin\*" --cover_children -- xmake run UnitTests
108+
"C:\Program Files\OpenCppCoverage\OpenCppCoverage.exe" --export_type cobertura:coverage.out --sources "ShaderLang\include\NZSL\*" --sources "ShaderLang\src\NZSL\*" --excluded_sources "ShaderLang\src\NZSL\SpirV\SpirvData.cpp" --modules "ShaderLang\bin\*" --cover_children -- xmake run UnitTests sanitizing
109109
110110
- name: Upload Coverage Report to Codecov
111111
uses: codecov/codecov-action@v4

.github/workflows/linux-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494

9595
# Run unit tests
9696
- name: Run unit tests
97-
run: xmake run UnitTests
97+
run: xmake run UnitTests sanitizing
9898

9999
# Install the result files
100100
- name: Install NZSL

.github/workflows/macos-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282

8383
# Run unit tests
8484
- name: Run unit tests
85-
run: xmake run UnitTests
85+
run: xmake run UnitTests sanitizing
8686

8787
# Install the result files
8888
- name: Install NZSL

.github/workflows/msys2-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393

9494
# Run unit tests
9595
- name: Run unit tests
96-
run: xmake run UnitTests
96+
run: xmake run UnitTests sanitizing
9797

9898
# Install the result files
9999
- name: Install NZSL

.github/workflows/windows-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989

9090
# Run unit tests
9191
- name: Run unit tests
92-
run: xmake run UnitTests
92+
run: xmake run UnitTests sanitizing
9393

9494
# Install the result files
9595
- name: Install NZSL

include/NZSL/Ast/SanitizeVisitor.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,10 @@ namespace nzsl::Ast
4747
bool forceAutoBindingResolve = false;
4848
bool makeVariableNameUnique = false;
4949
bool partialSanitization = false;
50-
bool reduceLoopsToWhile = false;
5150
bool removeAliases = false;
52-
bool removeCompoundAssignments = false;
5351
bool removeConstArraySize = false;
54-
bool removeMatrixBinaryAddSub = false;
55-
bool removeMatrixCast = false;
5652
bool removeOptionDeclaration = false;
57-
bool removeScalarSwizzling = false;
5853
bool removeSingleConstDeclaration = false;
59-
bool splitMultipleBranches = false;
6054
bool splitWrappedArrayAssignation = false;
6155
bool splitWrappedStructAssignation = false;
6256
bool useIdentifierAccessesForStructs = true;

0 commit comments

Comments
 (0)