From 2f731d650f4b5810fede35adda304807daa034df Mon Sep 17 00:00:00 2001 From: Cengizhan Pasaoglu Date: Sun, 25 Oct 2020 07:59:05 +0300 Subject: Replace fwd header files to declarations (#13972) --- toolsrc/include/vcpkg/base/checks.h | 1 - toolsrc/include/vcpkg/base/enums.h | 4 ++-- toolsrc/include/vcpkg/base/expected.h | 1 + toolsrc/include/vcpkg/base/fwd/lineinfo.h | 6 ++++++ toolsrc/include/vcpkg/base/graphs.h | 1 + toolsrc/include/vcpkg/base/optional.h | 2 +- toolsrc/include/vcpkg/base/system.debug.h | 1 + toolsrc/include/vcpkg/binarycaching.h | 10 +++------- toolsrc/include/vcpkg/binarycaching.private.h | 9 +++++---- toolsrc/include/vcpkg/cmakevars.h | 3 ++- toolsrc/include/vcpkg/fwd/packagespec.h | 6 ++++++ toolsrc/include/vcpkg/paragraphs.h | 9 +++++++-- toolsrc/include/vcpkg/vcpkglib.h | 3 ++- 13 files changed, 37 insertions(+), 19 deletions(-) create mode 100644 toolsrc/include/vcpkg/base/fwd/lineinfo.h create mode 100644 toolsrc/include/vcpkg/fwd/packagespec.h (limited to 'toolsrc/include') diff --git a/toolsrc/include/vcpkg/base/checks.h b/toolsrc/include/vcpkg/base/checks.h index 519ca58f4..da836a347 100644 --- a/toolsrc/include/vcpkg/base/checks.h +++ b/toolsrc/include/vcpkg/base/checks.h @@ -1,7 +1,6 @@ #pragma once #include -#include #include namespace vcpkg::Checks diff --git a/toolsrc/include/vcpkg/base/enums.h b/toolsrc/include/vcpkg/base/enums.h index 6eca2cfe1..4b77b3f6f 100644 --- a/toolsrc/include/vcpkg/base/enums.h +++ b/toolsrc/include/vcpkg/base/enums.h @@ -1,8 +1,8 @@ #pragma once -#include +#include -#include +#include namespace vcpkg::Enums { diff --git a/toolsrc/include/vcpkg/base/expected.h b/toolsrc/include/vcpkg/base/expected.h index fcf37bcaf..12bb64727 100644 --- a/toolsrc/include/vcpkg/base/expected.h +++ b/toolsrc/include/vcpkg/base/expected.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include #include diff --git a/toolsrc/include/vcpkg/base/fwd/lineinfo.h b/toolsrc/include/vcpkg/base/fwd/lineinfo.h new file mode 100644 index 000000000..0d65da5cc --- /dev/null +++ b/toolsrc/include/vcpkg/base/fwd/lineinfo.h @@ -0,0 +1,6 @@ +#pragma once + +namespace vcpkg +{ + struct LineInfo; +} diff --git a/toolsrc/include/vcpkg/base/graphs.h b/toolsrc/include/vcpkg/base/graphs.h index ac5f953dc..fd51d666b 100644 --- a/toolsrc/include/vcpkg/base/graphs.h +++ b/toolsrc/include/vcpkg/base/graphs.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include #include diff --git a/toolsrc/include/vcpkg/base/optional.h b/toolsrc/include/vcpkg/base/optional.h index caacf815e..606d60ce5 100644 --- a/toolsrc/include/vcpkg/base/optional.h +++ b/toolsrc/include/vcpkg/base/optional.h @@ -1,8 +1,8 @@ #pragma once +#include #include -#include #include #include diff --git a/toolsrc/include/vcpkg/base/system.debug.h b/toolsrc/include/vcpkg/base/system.debug.h index d9c50ac8e..d541b970a 100644 --- a/toolsrc/include/vcpkg/base/system.debug.h +++ b/toolsrc/include/vcpkg/base/system.debug.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include #include diff --git a/toolsrc/include/vcpkg/binarycaching.h b/toolsrc/include/vcpkg/binarycaching.h index d76d60370..9e77bc763 100644 --- a/toolsrc/include/vcpkg/binarycaching.h +++ b/toolsrc/include/vcpkg/binarycaching.h @@ -1,16 +1,12 @@ #pragma once +#include +#include + #include #include #include -#include - -namespace vcpkg::Dependencies -{ - struct InstallPlanAction; - struct ActionPlan; -} namespace vcpkg { diff --git a/toolsrc/include/vcpkg/binarycaching.private.h b/toolsrc/include/vcpkg/binarycaching.private.h index 46d9d6741..209807ccc 100644 --- a/toolsrc/include/vcpkg/binarycaching.private.h +++ b/toolsrc/include/vcpkg/binarycaching.private.h @@ -1,10 +1,11 @@ #pragma once -#include -#include -#include +#include +#include + +#include -#include +#include namespace vcpkg { diff --git a/toolsrc/include/vcpkg/cmakevars.h b/toolsrc/include/vcpkg/cmakevars.h index e92f50ab2..07c21bdfd 100644 --- a/toolsrc/include/vcpkg/cmakevars.h +++ b/toolsrc/include/vcpkg/cmakevars.h @@ -1,11 +1,12 @@ #pragma once #include +#include #include #include -#include +#include namespace vcpkg::CMakeVars { diff --git a/toolsrc/include/vcpkg/fwd/packagespec.h b/toolsrc/include/vcpkg/fwd/packagespec.h new file mode 100644 index 000000000..2f5719e1b --- /dev/null +++ b/toolsrc/include/vcpkg/fwd/packagespec.h @@ -0,0 +1,6 @@ +#pragma once + +namespace vcpkg +{ + struct PackageSpec; +} diff --git a/toolsrc/include/vcpkg/paragraphs.h b/toolsrc/include/vcpkg/paragraphs.h index 95726f913..f4ea36ede 100644 --- a/toolsrc/include/vcpkg/paragraphs.h +++ b/toolsrc/include/vcpkg/paragraphs.h @@ -1,10 +1,15 @@ #pragma once +#include + #include #include -#include -#include + +namespace vckpg::Parse +{ + struct ParseControlErrorInfo; +} namespace vcpkg::Paragraphs { diff --git a/toolsrc/include/vcpkg/vcpkglib.h b/toolsrc/include/vcpkg/vcpkglib.h index 0fd66e814..bb1d61c73 100644 --- a/toolsrc/include/vcpkg/vcpkglib.h +++ b/toolsrc/include/vcpkg/vcpkglib.h @@ -1,9 +1,10 @@ #pragma once +#include + #include #include -#include namespace vcpkg { -- cgit v1.2.3