Skip to content

Commit

Permalink
Audit headers for overzealous inclusion reported by Visual Studio (#1273
Browse files Browse the repository at this point in the history
)
  • Loading branch information
BillyONeal committed Nov 9, 2023
1 parent c9e4be1 commit dfb60db
Show file tree
Hide file tree
Showing 149 changed files with 255 additions and 391 deletions.
2 changes: 1 addition & 1 deletion include/vcpkg-test/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <vcpkg/fwd/tools.h>

#include <vcpkg/base/files.h>
#include <vcpkg/base/format.h>
#include <vcpkg/base/fmt.h>
#include <vcpkg/base/messages.h>
#include <vcpkg/base/pragmas.h>
#include <vcpkg/base/strings.h>
Expand Down
2 changes: 1 addition & 1 deletion include/vcpkg/base/chrono.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <vcpkg/base/fwd/format.h>
#include <vcpkg/base/fwd/fmt.h>

#include <vcpkg/base/optional.h>
#include <vcpkg/base/stringview.h>
Expand Down
2 changes: 1 addition & 1 deletion include/vcpkg/base/files.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <vcpkg/base/fwd/files.h>
#include <vcpkg/base/fwd/format.h>
#include <vcpkg/base/fwd/fmt.h>
#include <vcpkg/base/fwd/message_sinks.h>
#include <vcpkg/base/fwd/span.h>

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

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

#include <vcpkg/base/pragmas.h>

VCPKG_MSVC_WARNING(push)
Expand Down
17 changes: 0 additions & 17 deletions include/vcpkg/base/format.h

This file was deleted.

File renamed without changes.
20 changes: 20 additions & 0 deletions include/vcpkg/base/fwd/graphs.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#pragma once

namespace vcpkg
{
enum class ExplorationStatus
{
// We have not visited this vertex
NOT_EXPLORED,

// We have visited this vertex but haven't visited all vertices in its subtree
PARTIALLY_EXPLORED,

// We have visited this vertex and all vertices in its subtree
FULLY_EXPLORED
};

template<class V, class U>
struct AdjacencyProvider;
struct GraphRandomizer;
}
14 changes: 2 additions & 12 deletions include/vcpkg/base/graphs.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

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

#include <vcpkg/base/checks.h>
#include <vcpkg/base/lineinfo.h>
#include <vcpkg/base/messages.h>
Expand All @@ -10,18 +12,6 @@

namespace vcpkg
{
enum class ExplorationStatus
{
// We have not visited this vertex
NOT_EXPLORED,

// We have visited this vertex but haven't visited all vertices in its subtree
PARTIALLY_EXPLORED,

// We have visited this vertex and all vertices in its subtree
FULLY_EXPLORED
};

template<class V, class U>
struct AdjacencyProvider
{
Expand Down
2 changes: 1 addition & 1 deletion include/vcpkg/base/lineinfo.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <vcpkg/base/fwd/format.h>
#include <vcpkg/base/fwd/fmt.h>

#include <string>

Expand Down
1 change: 0 additions & 1 deletion include/vcpkg/base/messages.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include <vcpkg/base/fwd/messages.h>

#include <vcpkg/base/fmt.h>
#include <vcpkg/base/format.h>
#include <vcpkg/base/span.h>
#include <vcpkg/base/stringview.h>

Expand Down
2 changes: 1 addition & 1 deletion include/vcpkg/base/stringview.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <vcpkg/base/fwd/format.h>
#include <vcpkg/base/fwd/fmt.h>
#include <vcpkg/base/fwd/stringview.h>

#include <stddef.h>
Expand Down
8 changes: 3 additions & 5 deletions include/vcpkg/base/system.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#pragma once

#include <vcpkg/base/fwd/expected.h>
#include <vcpkg/base/fwd/files.h>
#include <vcpkg/base/fwd/optional.h>
#include <vcpkg/base/fwd/stringview.h>
#include <vcpkg/base/fwd/system.h>

#include <vcpkg/base/expected.h>
#include <vcpkg/base/messages.h>
#include <vcpkg/base/optional.h>
#include <vcpkg/base/stringview.h>

#include <string>
#include <vector>

Expand Down
1 change: 0 additions & 1 deletion include/vcpkg/base/system.process.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <vcpkg/base/span.h>
#include <vcpkg/base/stringview.h>

#include <functional>
#include <string>
#include <unordered_map>
#include <vector>
Expand Down
2 changes: 1 addition & 1 deletion include/vcpkg/base/system.proxy.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

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

#include <string>

Expand Down
1 change: 0 additions & 1 deletion include/vcpkg/buildenvironment.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

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

#include <string>
#include <vector>

namespace vcpkg
Expand Down
11 changes: 5 additions & 6 deletions include/vcpkg/bundlesettings.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#pragma once

#include <vcpkg/base/fwd/format.h>
#include <vcpkg/base/fwd/expected.h>
#include <vcpkg/base/fwd/file-contents.h>
#include <vcpkg/base/fwd/fmt.h>
#include <vcpkg/base/fwd/optional.h>
#include <vcpkg/base/fwd/stringview.h>

#include <vcpkg/fwd/bundlesettings.h>

#include <vcpkg/base/expected.h>
#include <vcpkg/base/file-contents.h>
#include <vcpkg/base/optional.h>
#include <vcpkg/base/stringview.h>

#include <string>

namespace vcpkg
Expand Down
11 changes: 6 additions & 5 deletions include/vcpkg/cmakevars.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#pragma once

#include <vcpkg/base/fwd/optional.h>
#include <vcpkg/base/fwd/span.h>

#include <vcpkg/fwd/dependencies.h>
#include <vcpkg/fwd/packagespec.h>
#include <vcpkg/fwd/portfileprovider.h>
#include <vcpkg/fwd/triplet.h>
#include <vcpkg/fwd/vcpkgpaths.h>

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

#include <vcpkg/packagespec.h>

#include <memory>
#include <string>
#include <unordered_map>

Expand Down
4 changes: 4 additions & 0 deletions include/vcpkg/commands.depend-info.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
#include <vcpkg/fwd/vcpkgcmdarguments.h>
#include <vcpkg/fwd/vcpkgpaths.h>

#include <string>
#include <unordered_set>
#include <vector>

namespace vcpkg
{
struct PackageDependInfo
Expand Down
6 changes: 3 additions & 3 deletions include/vcpkg/commands.find.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#pragma once

#include <vcpkg/base/fwd/optional.h>
#include <vcpkg/base/fwd/stringview.h>

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

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

#include <string>

namespace vcpkg
Expand Down
5 changes: 2 additions & 3 deletions include/vcpkg/commands.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#pragma once

#include <vcpkg/base/fwd/files.h>
#include <vcpkg/base/fwd/span.h>
#include <vcpkg/base/fwd/stringview.h>

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

#include <vcpkg/base/span.h>
#include <vcpkg/base/stringview.h>

#include <string>

namespace vcpkg
Expand Down
2 changes: 2 additions & 0 deletions include/vcpkg/commands.integrate.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

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

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

Expand Down
2 changes: 1 addition & 1 deletion include/vcpkg/commands.remove.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

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

#include <vcpkg/fwd/dependencies.h>
#include <vcpkg/fwd/installedpaths.h>
#include <vcpkg/fwd/packagespec.h>
#include <vcpkg/fwd/statusparagraphs.h>
#include <vcpkg/fwd/triplet.h>
#include <vcpkg/fwd/vcpkgcmdarguments.h>
#include <vcpkg/fwd/vcpkgpaths.h>
Expand Down
5 changes: 3 additions & 2 deletions include/vcpkg/commands.set-installed.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
#include <vcpkg/base/fwd/json.h>
#include <vcpkg/base/fwd/optional.h>

#include <vcpkg/fwd/binarycaching.h>
#include <vcpkg/fwd/build.h>
#include <vcpkg/fwd/cmakevars.h>
#include <vcpkg/fwd/commands.install.h>
#include <vcpkg/fwd/dependencies.h>
#include <vcpkg/fwd/portfileprovider.h>
#include <vcpkg/fwd/statusparagraphs.h>
#include <vcpkg/fwd/triplet.h>
#include <vcpkg/fwd/vcpkgcmdarguments.h>
#include <vcpkg/fwd/vcpkgpaths.h>

#include <set>

namespace vcpkg
{
enum class DryRun : bool
Expand Down
4 changes: 3 additions & 1 deletion include/vcpkg/commands.update.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
#pragma once

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

#include <vcpkg/packagespec.h>
#include <vcpkg/versions.h>

#include <vector>

namespace vcpkg
{
struct OutdatedPackage
Expand Down
3 changes: 2 additions & 1 deletion include/vcpkg/commands.z-extract.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#pragma once

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

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

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

#include <stddef.h>
Expand Down
6 changes: 5 additions & 1 deletion include/vcpkg/commands.z-generate-message-map.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#pragma once

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

#include <vcpkg/base/files.h>
#include <vcpkg/base/messages.h>
#include <vcpkg/base/stringview.h>

#include <vcpkg/vcpkgcmdarguments.h>

#include <vector>

namespace vcpkg
{
struct FormatArgMismatches
Expand Down
4 changes: 4 additions & 0 deletions include/vcpkg/configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

#include <vcpkg/registries.h>

#include <memory>
#include <string>
#include <vector>

namespace vcpkg
{
/// <summary>
Expand Down
5 changes: 2 additions & 3 deletions include/vcpkg/configure-environment.h
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
#pragma once

#include <vcpkg/base/fwd/downloads.h>
#include <vcpkg/base/fwd/expected.h>
#include <vcpkg/base/fwd/files.h>

#include <vcpkg/fwd/vcpkgpaths.h>

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

#include <vcpkg/vcpkgcmdarguments.h>

#include <string>
#include <vector>

namespace vcpkg
{
Expand Down
Loading

0 comments on commit dfb60db

Please sign in to comment.