Skip to content

std::wstring support for C# #1632

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

strentler
Copy link
Contributor

  • In IgnoreSystemDeclarationsPass: Explicitly renamed basic_string::
    assign and data
    methods becasue otherwise some following implicit renamings
    make the code not working
    (this issue can be observer when a std::string and std::wstring
    is present in the C++ input classes)
  • Removed the resetting of method names in
    SpecializationMethodsWithDependentPointersPass becasue
    this reverts changes which are made in the pass
    IgnoreSystemDeclarationsPass
  • added wstring type map
  • added a hacky flag to be able to run tests when the
    option MarshalCharAsManagedChar is
    set to false

@dnfadmin
Copy link

dnfadmin commented Aug 30, 2021

CLA assistant check
All CLA requirements met.

@ddobrev
Copy link
Contributor

ddobrev commented Aug 30, 2021

Our CI fails with this PR. Could you please get at least the OS you use working?

- In IgnoreSystemDeclarationsPass: Explicitly renamed basic_string::
  assign and data
  methods becasue otherwise some following implicit renamings
  make the code not working
  (this issue can be observer when a std::string and std::wstring
  is present in the C++ input classes)
- Removed the resetting of method names in
  SpecializationMethodsWithDependentPointersPass becasue
  this reverts changes which are made in the pass
  IgnoreSystemDeclarationsPass
- added wstring type map
- added a hacky flag be able to run tests when the
  option MarshalCharAsManagedChar is
  set to false
- Adjusted TypeMap for wstring in Stdlib.CLI.cs
- Fixed typo in Common.Test.cs
- Added check in test
- Added wstring exports in Std-symbols.cpp
@strentler
Copy link
Contributor Author

Got it now partly threw your CI. MacOS is missing.

To make this PR clean, there is still some work to do.

@ddobrev
Copy link
Contributor

ddobrev commented Sep 18, 2021

@strentler thank you very much for this piece, it's extremely important. Forget about macOS, I can take care of that part. I hope I'll be done by the time you've sent your cleansing.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants