[clang][dataflow] Print the source line if we saw unexpected diagnostics in tests.
authorMartin Braenne <mboehme@google.com>
Thu, 20 Jul 2023 08:53:41 +0000 (08:53 +0000)
committerMartin Braenne <mboehme@google.com>
Thu, 20 Jul 2023 12:40:22 +0000 (12:40 +0000)
commit8b5d3ba829c162fd4890fd65a4629ce0715825ee
tree0ca2fc11328700f12f4ee4130089096fabe36a58
parent3e3cdf9a480f0c54e94b011a05443c60a7b20375
[clang][dataflow] Print the source line if we saw unexpected diagnostics in tests.

This makes it easier to determine which line the unexpected happened on; previously, we would only get the line number.

Reviewed By: ymandel

Differential Revision: https://reviews.llvm.org/D155802
clang/unittests/Analysis/FlowSensitive/UncheckedOptionalAccessModelTest.cpp