Improve nvda helper by compiling with C++20 and disabling the /permissive flag#13072
Merged
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Collaborator
Author
|
The build issue should have been fixed. It was due to a bad merge. |
Contributor
|
Unless there is some urgency on this that I'm not aware of, I think it would be better to merge this in the new dev cycle. Applying 2022.2 milestone. |
Member
|
We plan to merge this soon for 2022.2, and are ready to revert if there are issues |
This comment was marked as outdated.
This comment was marked as outdated.
…missive and C++20 conversion
This comment was marked as outdated.
This comment was marked as outdated.
Collaborator
Author
|
It looks like the UIA remote library doesn't like C++20 that much. I need to dive into this some more. |
…perationAbstraction.h
LeonarddeR
commented
May 24, 2022
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
Collaborator
Author
|
This is now ready for review. Probably want to merge this early. |
feerrenrut
reviewed
Oct 21, 2022
feerrenrut
approved these changes
Oct 24, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to issue number:
None
Summary of the issue:
NVDAHelper was compiled with C++17, it could be compiled with C++20
wchar_t*orBSTRis no longer supported. This ensures safe code. See here for a rationale./permissive-flag (note the minus symbol disabling permissive mode), ensuring conformance in more areas. See hereDescription of how this pull request fixes the issue:
nvdaHelperis built with C++20 and disable permissive mode.wchar_t*orBSTRfrom string literal)Testing strategy:
The following areas of code have been touched and need testing:
Other changes are mainly changes from
char*toconst char*, so unlikely to cause any harm.I did some quick tests and didn't find anything crucial, probably best to test this in Alpha.
Known issues with pull request:
None
Change log entries:
For Developers
Code Review Checklist: