<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58290>58290</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
"No expected directives found" error message is confusing if `-verify=foo` was passed
</td>
</tr>
<tr>
<th>Labels</th>
<td>
good first issue,
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
tbaederr
</td>
</tr>
</table>
<pre>
If one passes `-verify=foo`, the error message when no `foo-expected` directives are found is:
```
error: no expected directives found: consider use of 'expected-no-diagnostics'
```
however, what's meant here is not `expected-no-diagnostics` but of course `foo-no-diagnostics`. This is especially confusing if multiple compiler invocations with different `-verify=` values are present.
The error message should use the proper prefix.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9UsFu2zAM_Rr7IsSw5TiJDz5sCwbsslN_QLYom4MiGaKUNH8_ym2wdu0GCJIoUo_vkRy9vg8_jPAOxKqIgERxqHdXCGjuRXs23rNdyG8iLiAgBB_EBYjUDOK2gBPO5w8ctoPnFaYImk2hMfAdrwynAgjjk9MCqWi_FPW5qB87I7-szdzQOSRjPsDeIm0o2T95R6ghiEQgvBGFPD7id87vNKrZeYo4EXs-TbX4G7DGrOu2qMhhxLKUi2IB5ovEHGIW9i9c1jimmJNPPgWm8VqED2GVeFoYjhcQQ6Gy9p4FmEToZoFGXJKNuFrg18uKlmWhu_pJRWSZ4oZx4SIYw7xcfN-czOKqbHqt8hqAOKZ6W-KnD12jxSert9Lllq7Br5yS_xp8rkoYmsOh2_dt28tSD63u216VEaOFoZDy5_86I-VfqVj0O6WfTJa4KXoZPF2mYIclxnUbE_md18zi01hxYdiw9vo4dsz6FydnE4lYP1-6k-zrchm6qTdqX3fTSZtjoyQ0rYGmG7UxdQ-tKa0awdJQdF-Z8ey9FgYDRbEh8VMeCj4mq9ycze5c4iBrKZu6aZq2bhtZTXIc4WgOtWpOMJq22NdwUWirzK7yYS7DsBEd00zstEiR_jhZL84OYCPB-CrFxYchjgp4rEO5URk2Rb8Bt1Uy0A">