[vcpkg] Fix forward declarations and missing pragma once#12836
[vcpkg] Fix forward declarations and missing pragma once#12836cngzhnp wants to merge 1 commit intomicrosoft:masterfrom
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. |
| Checks::exit_success(VCPKG_LINE_INFO); | ||
| #else | ||
| Util::unused(args, paths); | ||
| (void)(args, paths); |
There was a problem hiding this comment.
It would be nice to see complete elimination of Util::unused but that's a separate change.
There was a problem hiding this comment.
That was requested from @strega-nil. Not related with context but added.
There was a problem hiding this comment.
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'?) |
strega-nil
left a comment
There was a problem hiding this comment.
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.