Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion toolsrc/include/vcpkg/base/json.h
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ namespace vcpkg::Json
m_path.push_back(key);
auto res = internal_visit(value, visitor);
m_path.pop_back();
return std::move(res);
return res;
}
template<class Type>
Optional<Type> visit_map_field(StringView key, const Value& value, IDeserializer<Type>&& visitor)
Expand Down
11 changes: 4 additions & 7 deletions toolsrc/include/vcpkg/build.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#pragma once

#include <vcpkg/fwd/cmakevars.h>
#include <vcpkg/fwd/dependencies.h>
#include <vcpkg/fwd/portfileprovider.h>

#include <vcpkg/base/cstringview.h>
#include <vcpkg/base/files.h>
#include <vcpkg/base/optional.h>
#include <vcpkg/base/system.process.h>

#include <vcpkg/cmakevars.h>
#include <vcpkg/commands.integrate.h>
#include <vcpkg/packagespec.h>
#include <vcpkg/statusparagraphs.h>
Expand All @@ -23,12 +26,6 @@ namespace vcpkg
struct IBinaryProvider;
}

namespace vcpkg::Dependencies
{
struct InstallPlanAction;
struct ActionPlan;
}

namespace vcpkg::System
{
struct Environment;
Expand Down
6 changes: 1 addition & 5 deletions toolsrc/include/vcpkg/cmakevars.h
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
#pragma once

#include <vcpkg/fwd/dependencies.h>
#include <vcpkg/fwd/vcpkgpaths.h>

#include <vcpkg/base/optional.h>

#include <vcpkg/portfileprovider.h>

namespace vcpkg::Dependencies
{
struct ActionPlan;
}

namespace vcpkg::CMakeVars
{
struct CMakeVarProvider
Expand Down
1 change: 0 additions & 1 deletion toolsrc/include/vcpkg/commands.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include <vcpkg/build.h>
#include <vcpkg/commands.interface.h>

namespace vcpkg::Commands
Expand Down
13 changes: 3 additions & 10 deletions toolsrc/include/vcpkg/dependencies.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#pragma once

#include <vcpkg/fwd/cmakevars.h>
#include <vcpkg/fwd/portfileprovider.h>

#include <vcpkg/base/optional.h>
#include <vcpkg/base/util.h>

Expand All @@ -15,16 +18,6 @@ namespace vcpkg::Graphs
struct Randomizer;
}

namespace vcpkg::CMakeVars
{
struct CMakeVarProvider;
}

namespace vcpkg::PortFileProvider
{
struct PortFileProvider;
}

namespace vcpkg
{
struct StatusParagraphs;
Expand Down
3 changes: 2 additions & 1 deletion toolsrc/include/vcpkg/export.chocolatey.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma once

#include <vcpkg/fwd/vcpkgpaths.h>

#include <vcpkg/dependencies.h>
#include <vcpkg/vcpkgpaths.h>

#include <vector>

Expand Down
3 changes: 2 additions & 1 deletion toolsrc/include/vcpkg/export.prefab.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#pragma once

#include <vcpkg/fwd/vcpkgpaths.h>

#include <vcpkg/base/system.h>

#include <vcpkg/dependencies.h>
#include <vcpkg/vcpkgpaths.h>

#include <vector>

Expand Down
7 changes: 7 additions & 0 deletions toolsrc/include/vcpkg/fwd/build.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#pragma once

namespace vcpkg::Build
{
struct BuildInfo;
struct PreBuildInfo;
}
6 changes: 6 additions & 0 deletions toolsrc/include/vcpkg/fwd/cmakevars.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#pragma once

namespace vcpkg::CMakeVars
{
struct CMakeVarProvider;
}
7 changes: 7 additions & 0 deletions toolsrc/include/vcpkg/fwd/dependencies.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#pragma once

namespace vcpkg::Dependencies
{
struct InstallPlanAction;
struct ActionPlan;
}
7 changes: 7 additions & 0 deletions toolsrc/include/vcpkg/fwd/portfileprovider.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#pragma once

namespace vcpkg::PortFileProvider
{
struct PortFileProvider;
struct PathsPortFileProvider;
}
3 changes: 2 additions & 1 deletion toolsrc/include/vcpkg/portfileprovider.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#pragma once

#include <vcpkg/fwd/vcpkgpaths.h>

#include <vcpkg/base/expected.h>
#include <vcpkg/base/util.h>

#include <vcpkg/sourceparagraph.h>
#include <vcpkg/vcpkgpaths.h>

namespace vcpkg::PortFileProvider
{
Expand Down
12 changes: 9 additions & 3 deletions toolsrc/include/vcpkg/postbuildlint.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
#pragma once

#include <vcpkg/build.h>
#include <vcpkg/packagespec.h>
#include <vcpkg/vcpkgpaths.h>
#include <vcpkg/fwd/build.h>
#include <vcpkg/fwd/vcpkgpaths.h>

#include <vcpkg/base/files.h>

namespace vcpkg
{
struct PackageSpec;
}

namespace vcpkg::PostBuildLint
{
Expand Down
4 changes: 2 additions & 2 deletions toolsrc/include/vcpkg/registries.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

#include <vcpkg/base/fwd/json.h>

#include <vcpkg/fwd/vcpkgpaths.h>

#include <vcpkg/base/files.h>
#include <vcpkg/base/optional.h>

#include <vcpkg/vcpkgpaths.h>

#include <memory>
#include <string>
#include <system_error>
Expand Down
5 changes: 4 additions & 1 deletion toolsrc/include/vcpkg/remove.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#pragma once

#include <vcpkg/fwd/dependencies.h>
#include <vcpkg/fwd/vcpkgcmdarguments.h>
#include <vcpkg/fwd/vcpkgpaths.h>

#include <vcpkg/commands.interface.h>
#include <vcpkg/dependencies.h>

namespace vcpkg::Remove
{
Expand Down
3 changes: 2 additions & 1 deletion toolsrc/include/vcpkg/triplet.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include <vcpkg/fwd/vcpkgcmdarguments.h>

#include <vcpkg/base/optional.h>
#include <vcpkg/base/system.h>

Expand All @@ -8,7 +10,6 @@
namespace vcpkg
{
struct TripletInstance;
struct VcpkgCmdArguments;

struct Triplet
{
Expand Down
11 changes: 9 additions & 2 deletions toolsrc/include/vcpkg/update.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
#pragma once

#include <vcpkg/fwd/portfileprovider.h>
#include <vcpkg/fwd/vcpkgcmdarguments.h>
#include <vcpkg/fwd/vcpkgpaths.h>

#include <vcpkg/commands.interface.h>
#include <vcpkg/dependencies.h>
#include <vcpkg/packagespec.h>
#include <vcpkg/statusparagraphs.h>
#include <vcpkg/versiont.h>

namespace vcpkg
{
struct StatusParagraphs;
}

namespace vcpkg::Update
{
struct OutdatedPackage
Expand Down
1 change: 1 addition & 0 deletions toolsrc/src/vcpkg-test/commands.build.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include <vcpkg/base/files.h>

#include <vcpkg/build.h>
#include <vcpkg/commands.h>
#include <vcpkg/vcpkgcmdarguments.h>
#include <vcpkg/vcpkgpaths.h>
Expand Down
2 changes: 2 additions & 0 deletions toolsrc/src/vcpkg-test/update.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include <vcpkg/base/sortedvector.h>

#include <vcpkg/portfileprovider.h>
#include <vcpkg/statusparagraphs.h>
#include <vcpkg/update.h>

#include <vcpkg-test/util.h>
Expand Down
1 change: 1 addition & 0 deletions toolsrc/src/vcpkg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <vcpkg/metrics.h>
#include <vcpkg/paragraphs.h>
#include <vcpkg/userconfig.h>
#include <vcpkg/vcpkgcmdarguments.h>
#include <vcpkg/vcpkglib.h>

#include <cassert>
Expand Down
1 change: 1 addition & 0 deletions toolsrc/src/vcpkg/build.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <vcpkg/binarycaching.h>
#include <vcpkg/build.h>
#include <vcpkg/buildenvironment.h>
#include <vcpkg/cmakevars.h>
#include <vcpkg/commands.h>
#include <vcpkg/commands.version.h>
#include <vcpkg/dependencies.h>
Expand Down
1 change: 1 addition & 0 deletions toolsrc/src/vcpkg/commands.ci.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <vcpkg/binarycaching.h>
#include <vcpkg/build.h>
#include <vcpkg/cmakevars.h>
#include <vcpkg/commands.ci.h>
#include <vcpkg/dependencies.h>
#include <vcpkg/globalstate.h>
Expand Down
1 change: 1 addition & 0 deletions toolsrc/src/vcpkg/commands.dependinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <vcpkg/base/system.print.h>
#include <vcpkg/base/util.h>

#include <vcpkg/cmakevars.h>
#include <vcpkg/commands.dependinfo.h>
#include <vcpkg/dependencies.h>
#include <vcpkg/help.h>
Expand Down
1 change: 1 addition & 0 deletions toolsrc/src/vcpkg/commands.search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <vcpkg/globalstate.h>
#include <vcpkg/help.h>
#include <vcpkg/paragraphs.h>
#include <vcpkg/portfileprovider.h>
#include <vcpkg/sourceparagraph.h>
#include <vcpkg/vcpkgcmdarguments.h>
#include <vcpkg/vcpkglib.h>
Expand Down
2 changes: 2 additions & 0 deletions toolsrc/src/vcpkg/commands.upgrade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
#include <vcpkg/base/util.h>

#include <vcpkg/binarycaching.h>
#include <vcpkg/cmakevars.h>
#include <vcpkg/commands.upgrade.h>
#include <vcpkg/dependencies.h>
#include <vcpkg/globalstate.h>
#include <vcpkg/help.h>
#include <vcpkg/input.h>
#include <vcpkg/install.h>
#include <vcpkg/portfileprovider.h>
#include <vcpkg/statusparagraphs.h>
#include <vcpkg/update.h>
#include <vcpkg/vcpkgcmdarguments.h>
Expand Down
1 change: 1 addition & 0 deletions toolsrc/src/vcpkg/dependencies.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <vcpkg/base/strings.h>
#include <vcpkg/base/util.h>

#include <vcpkg/cmakevars.h>
#include <vcpkg/dependencies.h>
#include <vcpkg/packagespec.h>
#include <vcpkg/paragraphs.h>
Expand Down
1 change: 1 addition & 0 deletions toolsrc/src/vcpkg/export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <vcpkg/input.h>
#include <vcpkg/install.h>
#include <vcpkg/paragraphs.h>
#include <vcpkg/portfileprovider.h>
#include <vcpkg/tools.h>
#include <vcpkg/vcpkglib.h>

Expand Down
1 change: 1 addition & 0 deletions toolsrc/src/vcpkg/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <vcpkg/input.h>
#include <vcpkg/metrics.h>
#include <vcpkg/packagespec.h>
#include <vcpkg/vcpkgpaths.h>

namespace vcpkg
{
Expand Down
1 change: 1 addition & 0 deletions toolsrc/src/vcpkg/registries.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <vcpkg/base/json.h>

#include <vcpkg/registries.h>
#include <vcpkg/vcpkgpaths.h>

namespace
{
Expand Down
1 change: 1 addition & 0 deletions toolsrc/src/vcpkg/remove.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <vcpkg/help.h>
#include <vcpkg/input.h>
#include <vcpkg/paragraphs.h>
#include <vcpkg/portfileprovider.h>
#include <vcpkg/remove.h>
#include <vcpkg/update.h>
#include <vcpkg/vcpkglib.h>
Expand Down
2 changes: 2 additions & 0 deletions toolsrc/src/vcpkg/update.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
#include <vcpkg/commands.h>
#include <vcpkg/help.h>
#include <vcpkg/paragraphs.h>
#include <vcpkg/portfileprovider.h>
#include <vcpkg/update.h>
#include <vcpkg/vcpkgcmdarguments.h>
#include <vcpkg/vcpkglib.h>

namespace vcpkg::Update
Expand Down
1 change: 1 addition & 0 deletions toolsrc/src/vcpkg/vcpkgcmdarguments.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <vcpkg/base/json.h>
#include <vcpkg/base/system.debug.h>
#include <vcpkg/base/system.print.h>

Expand Down