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

Support importing wide character literals from C headers #70848

Open
compnerd opened this issue Jan 11, 2024 · 0 comments
Open

Support importing wide character literals from C headers #70848

compnerd opened this issue Jan 11, 2024 · 0 comments
Labels
clang importer Area → compiler: The clang importer feature A feature request or implementation Windows Platform: Windows

Comments

@compnerd
Copy link
Collaborator

Motivation

Windows uses a number of wide string literals for constants and it would be convenient to be import these directly without having to redeclare them and use the .utf16 accessor on the string literals.

Proposed solution

Have the ClangImporter import the types with guaranteed storage and UnsafePointer<CWideChar> accessor.

Alternatives considered

No response

Additional information

No response

@compnerd compnerd added clang importer Area → compiler: The clang importer feature A feature request or implementation Windows Platform: Windows labels Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang importer Area → compiler: The clang importer feature A feature request or implementation Windows Platform: Windows
Projects
None yet
Development

No branches or pull requests

1 participant