-
Notifications
You must be signed in to change notification settings - Fork 1.6k
fixed #14384 - added Platform::windows to specify if a platform is a Windows one
#4960
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
base: main
Are you sure you want to change the base?
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
|
This also needs some kind of hook to implicitly replace the |
4791f58 to
5ce4035
Compare
Platform attributesPlatform attributes
e0d41c0 to
88a72a9
Compare
4b7d4d7 to
e1c108a
Compare
|
Platform attributesPlatform::windows to specify if a platform is a Windows one
Platform::windows to specify if a platform is a Windows onePlatform::windows to specify if a platform is a Windows one
I filed about it https://trac.cppcheck.net/ticket/14385. This ties into the proper handling of the |
| case Type::Win32W: | ||
| case Type::Win32A: | ||
| type = t; | ||
| windows = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's try to support arbitrary usage of this class.
windows should be assigned always so that it will be false for a unix platform.
Platform p;
p.set(win64);
p.set(unix64);
I think p.windows is true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, but the problem also exists for any field when loading from a XML. I added a TODO about it.
This plays into the discussion in #5458. If we made unspecified the default and no longer make it user selectable we could use that as an initial state when no other platform has been/could be loaded.
I will look into it while working on/towards #4325.
|



No description provided.