Skip to content
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

[stable] Expose SourceLoc to C++ interface #20980

Merged
merged 1 commit into from
Mar 17, 2025

Conversation

ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented Mar 12, 2025

Since Loc was make opaque, can't ignore this type anymore. For example, converting DMD locations to GCC locations, interfacing with GCC diagnostics via own implementation of verrorReport.

@ibuclaw ibuclaw added Compiler:GDC Gnu D Compiler Compiler:C++ Interface C++ interface used by LDC/GDC labels Mar 12, 2025
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @ibuclaw!

Bugzilla references

Your 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 locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "stable + dmd#20980"

@ibuclaw ibuclaw requested a review from dkorpel March 12, 2025 19:27
@thewilsonator thewilsonator merged commit 8c9769f into dlang:stable Mar 17, 2025
84 of 87 checks passed
@ibuclaw ibuclaw deleted the stable_sourceloc branch March 17, 2025 14:28
dkorpel added a commit that referenced this pull request Mar 21, 2025
* bump VERSION to v2.110.0

* purge changelog

* bump VERSION to v2.111.0-beta.1

* Accept __rvalue attribute on ref functions; which will force the result to be treated as __rvalue. (#20946)

This is essential to implement `move`, `forward`, etc.

* memoryerror.d: Fix AnySupported version condition (#20983)

* Fix #20982 - wrong line number in iasmgcc (#20993)

* Move genCfunc to cxxfrontend (#20992)

* druntime: Fix compilation of rt.cover on Android (#21015)

* Expose SourceLoc to C++ interface (#20980)

* [stable] C++ header fixes for declaration, expression, and typinf (#21016)

Seen either from compilation errors or missing symbols at link time.

* C++ headers: Add 3 Declaration bitfield setters/getters required by LDC

* druntime: Add module declaration to rt.invariant, to prevent conflicts with user-provided invariant.d (#21017)

* Fix #21020 - Indexing a *cast* AA yields no lvalue anymore (#21029)

* Add C++23 to CppStdRevision enum (#21043)

* Improve UFCS/property error message (#21046)

---------

Co-authored-by: Manu Evans <turkeyman@gmail.com>
Co-authored-by: Martin Kinkelin <kinke@users.noreply.github.com>
Co-authored-by: Iain Buclaw <ibuclaw@gdcproject.org>
Co-authored-by: Martin Kinkelin <noone@nowhere.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compiler:C++ Interface C++ interface used by LDC/GDC Compiler:GDC Gnu D Compiler Merge:auto-merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants