[clang] Update expected test diagnostics to include matrices as accepted types
After #185304, some tests expect diagnostics that say that an argument "must be a scalar or vector of floating-point types". That message is now outdated for cases where matrices are also accepted, and should instead mention "scalar, vector, or matrix of floating-point types".
This affects not only the tests added in that PR, but also existing tests that rely on the older wording. Since the change in #185304 was made in the generic SemaChecking.cpp path rather than HLSL-specific code, the change affects not only HLSL tests that check the old diagnostic text.
@llvm/issue-subscribers-clang-frontend
Author: NeKon69
This affects not only the tests added in that PR, but also existing tests that rely on the older wording. Since the change in #185304 was made in the generic SemaChecking.cpp path rather than HLSL-specific code, the change affects not only HLSL tests that check the old diagnostic text.
Reopening because the PR that closed this issue was reverted.
We need to do something more than just change the text of the diagnostic - not all languages that emit this diagnostic support matrices. Next step is to update the issue description with the plan.
@farzonl - discussed in planning; min at this point is to figure out what we want to do for this, then we can decide if we're targeting September or later for it.
I'm looking at the PR and the solution was already called out use an enum_select also we should not make this HLSL based for langopt but LangOpts.MatrixTypes
I'm setting this to days of work but it should really just be hours and the enum select should keep the number of test cases that need to be updated down.