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
[vcpkg] Fix forward declarations and missing pragma once #12836
Conversation
@cngzhnp Could you instead add a |
e3f28d0
to
eff34ae
Compare
There was a failure on the pipeline but I checked the logs, assume no related with my changes. Could you please restart the pipeline and review my changes? |
Some of them are related:
|
eff34ae
to
8eeed12
Compare
Could you remove |
8eeed12
to
63f3bb7
Compare
@strega-nil Done. |
63f3bb7
to
e1264a4
Compare
I do not understand that why |
e1264a4
to
24878f7
Compare
@strega-nil Ping for review. |
@@ -27,7 +27,7 @@ namespace vcpkg::Commands::X_VSInstances | |||
|
|||
Checks::exit_success(VCPKG_LINE_INFO); | |||
#else | |||
Util::unused(args, paths); | |||
(void)(args, paths); |
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.
It would be nice to see complete elimination of Util::unused but that's a separate change.
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.
That was requested from @strega-nil. Not related with context but added.
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.
Yes, I mean do what she asked but for all callers of Util::unused
rather than just here.
I'd like to see something like cngzhnp#1 used instead, since I don't like copy-pasting things that we can get the compiler to copy-paste for us. |
@strega-nil Can you clarify: are you saying this PR should rejected for now? (If so, can you mark it 'waiting'/'request changes'?) |
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.
Could we do cngzhnp#1 instead?
@strega-nil From my point of view, LGTM. |
Most of the header files does contain a forward declaration for some incomplete types. In this pull request, I tried to add them to break the dependency between header files as well.
On the other hand, buildenvironment.h file does not contain "pragma once" and fixed.