diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-03 14:51:32 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-04 16:44:42 -0700 |
| commit | 6ccb3b95d8f193dc052d06977adc9050dea1c5c6 (patch) | |
| tree | a54d73ff13092fc6dce2304dac42af92854e3f4a /toolsrc/include | |
| parent | b36df55c111ccba97322bdf3fa0755eec30e5a8f (diff) | |
| download | vcpkg-6ccb3b95d8f193dc052d06977adc9050dea1c5c6.tar.gz vcpkg-6ccb3b95d8f193dc052d06977adc9050dea1c5c6.zip | |
BuildType to UpperCamelCase
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/PostBuildLint_BuildType.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/toolsrc/include/PostBuildLint_BuildType.h b/toolsrc/include/PostBuildLint_BuildType.h index 31fbb11c9..a8fd90740 100644 --- a/toolsrc/include/PostBuildLint_BuildType.h +++ b/toolsrc/include/PostBuildLint_BuildType.h @@ -6,7 +6,7 @@ namespace vcpkg::PostBuildLint::BuildType { - enum class backing_enum_t + enum class BackingEnum { DEBUG_STATIC = 1, DEBUG_DYNAMIC, @@ -14,14 +14,14 @@ namespace vcpkg::PostBuildLint::BuildType RELEASE_DYNAMIC }; - struct type + struct Type { - type() = delete; + Type() = delete; - constexpr explicit type(const backing_enum_t backing_enum, const ConfigurationType::type config, const LinkageType::type linkage) : + constexpr explicit Type(const BackingEnum backing_enum, const ConfigurationType::type config, const LinkageType::type linkage) : backing_enum(backing_enum), m_config(config), m_linkage(linkage) { } - constexpr operator backing_enum_t() const { return backing_enum; } + constexpr operator BackingEnum() const { return backing_enum; } const ConfigurationType::type& config() const; const LinkageType::type& linkage() const; @@ -29,19 +29,19 @@ namespace vcpkg::PostBuildLint::BuildType const std::string& toString() const; private: - backing_enum_t backing_enum; + BackingEnum backing_enum; ConfigurationType::type m_config; LinkageType::type m_linkage; }; static const std::string ENUM_NAME = "vcpkg::PostBuildLint::BuildType"; - static constexpr type DEBUG_STATIC = type(backing_enum_t::DEBUG_STATIC, ConfigurationType::DEBUG, LinkageType::STATIC); - static constexpr type DEBUG_DYNAMIC = type(backing_enum_t::DEBUG_DYNAMIC, ConfigurationType::DEBUG, LinkageType::DYNAMIC); - static constexpr type RELEASE_STATIC = type(backing_enum_t::RELEASE_STATIC, ConfigurationType::RELEASE, LinkageType::STATIC); - static constexpr type RELEASE_DYNAMIC = type(backing_enum_t::RELEASE_DYNAMIC, ConfigurationType::RELEASE, LinkageType::DYNAMIC); + static constexpr Type DEBUG_STATIC = Type(BackingEnum::DEBUG_STATIC, ConfigurationType::DEBUG, LinkageType::STATIC); + static constexpr Type DEBUG_DYNAMIC = Type(BackingEnum::DEBUG_DYNAMIC, ConfigurationType::DEBUG, LinkageType::DYNAMIC); + static constexpr Type RELEASE_STATIC = Type(BackingEnum::RELEASE_STATIC, ConfigurationType::RELEASE, LinkageType::STATIC); + static constexpr Type RELEASE_DYNAMIC = Type(BackingEnum::RELEASE_DYNAMIC, ConfigurationType::RELEASE, LinkageType::DYNAMIC); - static constexpr std::array<type, 4> values = { DEBUG_STATIC, DEBUG_DYNAMIC, RELEASE_STATIC, RELEASE_DYNAMIC }; + static constexpr std::array<Type, 4> values = { DEBUG_STATIC, DEBUG_DYNAMIC, RELEASE_STATIC, RELEASE_DYNAMIC }; - type value_of(const ConfigurationType::type& config, const LinkageType::type& linkage); + Type value_of(const ConfigurationType::type& config, const LinkageType::type& linkage); } |
