Skip to content

Remove frontend.h C++ header tests#23191

Open
dkorpel wants to merge 1 commit into
dlang:masterfrom
dkorpel:rm-frontend-h
Open

Remove frontend.h C++ header tests#23191
dkorpel wants to merge 1 commit into
dlang:masterfrom
dkorpel:rm-frontend-h

Conversation

@dkorpel
Copy link
Copy Markdown
Contributor

@dkorpel dkorpel commented May 29, 2026

They have been superseded by ./build.d cpp-layout-test #23187

Depends on #23190

They have been superseded by ./build.d cpp-layout-test
@dlang-bot
Copy link
Copy Markdown
Contributor

Thanks for your pull request and interest in making D better, @dkorpel! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the coverage diff by visiting the details link of the codecov check)
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

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 "master + dmd#23191"

@ibuclaw
Copy link
Copy Markdown
Member

ibuclaw commented May 29, 2026

@dkorpel nonblocking question.

Does this python script allow checking multiple targets?

  • Windows/MSVC (different mangling scheme)
  • x86/«any other arch»32 (different pointer size)
  • ARM64/PPC64 (different c_real size)
  • Darwin/PPC32 (different c_bool size)

@dkorpel
Copy link
Copy Markdown
Contributor Author

dkorpel commented May 29, 2026

Currently the script uses clang to walk all headers to generate a single .d file with mangles and offsets hard-coded for Linux 64-bit:

https://gist.github.com/dkorpel/c80efc25b1b493a5079e695b39c6195f

But the script could be edited to use whatever configurations clang supports, and invoked multiple times to generate different variants.

@thewilsonator
Copy link
Copy Markdown
Contributor

Dependant PR merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants