summaryrefslogtreecommitdiff
path: root/tests/preprocessor
diff options
context:
space:
mode:
authorvenkataram-nv <vedavamadath@nvidia.com>2024-07-09 16:18:36 -0700
committerGitHub <noreply@github.com>2024-07-09 16:18:36 -0700
commit0e6c5c518953141f31c09e5f10d3939054f9b1ee (patch)
tree932bddc80408e211e1128ca5901b301c154e67bd /tests/preprocessor
parent1caef5907d0b0f16f686a8fcca479c6afc09f146 (diff)
Warnings for uninitialized values (#4530)
This extends the code for handling uninitialized output parameters. Still needs to handle generic templates and assignment of uninitialized values more carefully. The file containing the relevant code are now in source/slang/slang-ir-use-uninitialized-values.cpp rather than the previous source/slang/slang-ir-use-uninitialized-out-param.h and the top-level function is now checkForUsingUinitializedValues. Additionally a rudimentary test shader has been added for this case, which replaces the old file for out params only; tests/diagnositcs/uninitialized-out.slang becomes tests/diagnositcs/uninitialized.slang. What this does not implement (could be future PRs): * Checking uninitialized fields within constructors * Partially uninitialized values with respect to data structure (e.g. arrays/structs/vector types) * Partially uninitialized values with respect to control flow (e.g. if/else/loop)
Diffstat (limited to 'tests/preprocessor')
0 files changed, 0 insertions, 0 deletions