diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-06-06 16:30:01 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-06-06 16:37:58 -0700 |
| commit | 9a698d7088beb3fa32b1b9d0321781c0ba07e18e (patch) | |
| tree | 1d666b3b6ab1975ec56cd507dd41b2a9fb8a5470 /toolsrc/src/PostBuildLint_ConfigurationType.cpp | |
| parent | 831f0631f7eea7aebad5fcce95c0bbf0e0cdff68 (diff) | |
| download | vcpkg-9a698d7088beb3fa32b1b9d0321781c0ba07e18e.tar.gz vcpkg-9a698d7088beb3fa32b1b9d0321781c0ba07e18e.zip | |
Convert BuildType/Configuration Type into simple enum classes
Diffstat (limited to 'toolsrc/src/PostBuildLint_ConfigurationType.cpp')
| -rw-r--r-- | toolsrc/src/PostBuildLint_ConfigurationType.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/toolsrc/src/PostBuildLint_ConfigurationType.cpp b/toolsrc/src/PostBuildLint_ConfigurationType.cpp deleted file mode 100644 index eeccb1804..000000000 --- a/toolsrc/src/PostBuildLint_ConfigurationType.cpp +++ /dev/null @@ -1,24 +0,0 @@ -#include "pch.h" - -#include "PackageSpec.h" -#include "PostBuildLint_ConfigurationType.h" -#include "vcpkg_Enums.h" - -namespace vcpkg::PostBuildLint -{ - static const std::string NULLVALUE_STRING = Enums::nullvalue_to_string(ConfigurationTypeC::ENUM_NAME); - - static const std::string NAME_DEBUG = "Debug"; - static const std::string NAME_RELEASE = "Release"; - - const std::string& ConfigurationType::to_string() const - { - switch (this->backing_enum) - { - case ConfigurationTypeC::DEBUG: return NAME_DEBUG; - case ConfigurationTypeC::RELEASE: return NAME_RELEASE; - case ConfigurationTypeC::NULLVALUE: return NULLVALUE_STRING; - default: Checks::unreachable(VCPKG_LINE_INFO); - } - } -} |
