diff options
| author | Cengizhan Pasaoglu <cengizhanpasaoglu@gmail.com> | 2020-10-25 07:59:05 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-24 21:59:05 -0700 |
| commit | 2f731d650f4b5810fede35adda304807daa034df (patch) | |
| tree | 8e9519022991d306cdde7944c0ca238bfada2bbd /toolsrc/include | |
| parent | 527c0e04332db88a7906e469dca1d9f0a35726fc (diff) | |
| download | vcpkg-2f731d650f4b5810fede35adda304807daa034df.tar.gz vcpkg-2f731d650f4b5810fede35adda304807daa034df.zip | |
Replace fwd header files to declarations (#13972)
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/vcpkg/base/checks.h | 1 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg/base/enums.h | 4 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg/base/expected.h | 1 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg/base/fwd/lineinfo.h | 6 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg/base/graphs.h | 1 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg/base/optional.h | 2 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg/base/system.debug.h | 1 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg/binarycaching.h | 10 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg/binarycaching.private.h | 9 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg/cmakevars.h | 3 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg/fwd/packagespec.h | 6 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg/paragraphs.h | 9 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg/vcpkglib.h | 3 |
13 files changed, 37 insertions, 19 deletions
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 <vcpkg/base/cstringview.h> -#include <vcpkg/base/lineinfo.h> #include <vcpkg/base/strings.h> 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 <vcpkg/base/lineinfo.h> +#include <vcpkg/base/fwd/lineinfo.h> -#include <string> +#include <vcpkg/base/cstringview.h> 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 <vcpkg/base/checks.h> +#include <vcpkg/base/lineinfo.h> #include <vcpkg/base/stringliteral.h> #include <system_error> 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 <vcpkg/base/checks.h> +#include <vcpkg/base/lineinfo.h> #include <vcpkg/base/system.print.h> #include <string> 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 <vcpkg/base/fwd/lineinfo.h> #include <vcpkg/base/fwd/optional.h> -#include <vcpkg/base/lineinfo.h> #include <vcpkg/base/pragmas.h> #include <type_traits> 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 <vcpkg/base/chrono.h> +#include <vcpkg/base/lineinfo.h> #include <vcpkg/base/system.print.h> #include <atomic> 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 <vcpkg/fwd/dependencies.h> +#include <vcpkg/fwd/vcpkgpaths.h> + #include <vcpkg/base/expected.h> #include <vcpkg/base/files.h> #include <vcpkg/packagespec.h> -#include <vcpkg/vcpkgpaths.h> - -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 <vcpkg/dependencies.h> -#include <vcpkg/packagespec.h> -#include <vcpkg/vcpkgpaths.h> +#include <vcpkg/fwd/packagespec.h> +#include <vcpkg/fwd/vcpkgpaths.h> + +#include <vcpkg/base/strings.h> -#include <string> +#include <vcpkg/dependencies.h> 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 <vcpkg/fwd/dependencies.h> +#include <vcpkg/fwd/portfileprovider.h> #include <vcpkg/fwd/vcpkgpaths.h> #include <vcpkg/base/optional.h> -#include <vcpkg/portfileprovider.h> +#include <vcpkg/packagespec.h> 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 <vcpkg/fwd/vcpkgpaths.h> + #include <vcpkg/base/expected.h> #include <vcpkg/binaryparagraph.h> -#include <vcpkg/paragraphparser.h> -#include <vcpkg/vcpkgpaths.h> + +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 <vcpkg/fwd/vcpkgpaths.h> + #include <vcpkg/base/sortedvector.h> #include <vcpkg/statusparagraphs.h> -#include <vcpkg/vcpkgpaths.h> namespace vcpkg { |
