-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"No expected directives found" error message is confusing if -verify=foo
was passed
#58290
Comments
@llvm/issue-subscribers-good-first-issue |
@llvm/issue-subscribers-clang-driver |
Hi! Let me resolve this issue! |
I'm still working on it! |
It's fine that a "no-diagnostics" comment is required, but if I pass |
Thanks, I see! Since the commit I mentioned said that |
I don't think "expected-no-diagnostics" is to be taken literally; it's just the default when no |
Hello, has this issue been fixed and @diohabara are you still working on this, I will like to work on it. |
Yes, you can do it. |
Hello, I think that this issue has not been resolved yet. @tbaederr , I would like to work on this issue, can you please assign it to me. |
I reproduced the error by reading the following documentation : docs. Will rectify it now. |
I have made the necessary changes in the DiagnosticFrontendKinds.td file as :
and in VerifyDiagnosticConsumer.cpp as :
can you please confirm whether or not I can get this by |
You might wanna look at b4e0589, which did something similar. |
@tbaederr, created a PR for the same. Please take a look at it and suggest changes when you get free. Also really sorry for the delay, was busy the past couple of days. |
Updated the error message to use the proper prefix when no expected directives are found by changing the hard coded expected in the message to a dynamic value in two error messages. Fixes #58290
If one passes
-verify=foo
, the error message when nofoo-*
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 coursefoo-no-diagnostics
. This is especially confusing if multiple compiler invocations with different-verify=
values are present.The error message should use the proper prefix.
The text was updated successfully, but these errors were encountered: