-
-
Notifications
You must be signed in to change notification settings - Fork 659
errors: Remove toplevel warning entrypoints #21761
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
base: master
Are you sure you want to change the base?
Conversation
Thanks for your pull request, @ibuclaw! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + dmd#21761" |
These are used by LDC.
|
also
|
These are now unused, their removal discourages adding new warnings to the language.
32167f7
to
33036df
Compare
Unittests, not compiler. Fixed. |
Surely you should be using the native diagnostic engine? https://mlir.llvm.org/docs/Diagnostics/ GDC does, and it implements its own version of
|
MLIR is not LLVM. |
This is not helping LDC's corner. :-) https://llvm.org/doxygen/classllvm_1_1LLVMContext.html#aad03ef5cfbe6e7cad076d9e45ba06592 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine by me of course 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://llvm.org/doxygen/classllvm_1_1LLVMContext.html#aad03ef5cfbe6e7cad076d9e45ba06592
We only use that for inline asm diagnostics, and then only by proxy https://github.com/ldc-developers/ldc/blob/master/driver/codegenerator.cpp#L150
I don't think this should be done, but I will defer to @kinke in the mean time please do not merge
I don't see a good reason to change these LDC warnings, the dmd-frontend API is nice and trivial to use. We most likely don't need the |
The remaining uses of errorsink.warning are:
I'm half minded then just to rename the errorsink method to
GDC code generator has a lot to warn about. https://compiler-explorer.com/z/h9Ev7Pq3W Just do it with your native diagnostics engine. :-) |
The few things I've seen in LLVM are all for the LLVM backends. LLVM != gcc. :) |
Can still continue with the dismantling of everything else around warnings in dmd though. ;-) |
It doesn't look backend specific though. https://llvm.org/doxygen/classllvm_1_1DiagnosticInfo.html
You should be doing that for all diagnostics. |
These are now unused, their removal discourages adding new warnings to the language.