diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-03 14:50:50 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-04 16:44:42 -0700 |
| commit | b36df55c111ccba97322bdf3fa0755eec30e5a8f (patch) | |
| tree | 3fc0ab67ba2d38757a910018a158f66542c832e8 /toolsrc/include | |
| parent | 7ee180ebdd7ec93a4ba3c34c38fd467109365ad6 (diff) | |
| download | vcpkg-b36df55c111ccba97322bdf3fa0755eec30e5a8f.tar.gz vcpkg-b36df55c111ccba97322bdf3fa0755eec30e5a8f.zip | |
BuildPolicies to UpperCamelCase
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/PostBuildLint_BuildInfo.h | 2 | ||||
| -rw-r--r-- | toolsrc/include/PostBuildLint_BuildPolicies.h | 26 |
2 files changed, 14 insertions, 14 deletions
diff --git a/toolsrc/include/PostBuildLint_BuildInfo.h b/toolsrc/include/PostBuildLint_BuildInfo.h index cbc944488..271279f82 100644 --- a/toolsrc/include/PostBuildLint_BuildInfo.h +++ b/toolsrc/include/PostBuildLint_BuildInfo.h @@ -14,7 +14,7 @@ namespace vcpkg::PostBuildLint LinkageType::type crt_linkage; LinkageType::type library_linkage; - std::map<BuildPolicies::type, OptBoolT> policies; + std::map<BuildPolicies::Type, OptBoolT> policies; }; BuildInfo read_build_info(const fs::path& filepath); diff --git a/toolsrc/include/PostBuildLint_BuildPolicies.h b/toolsrc/include/PostBuildLint_BuildPolicies.h index 67da686fb..7502a16bb 100644 --- a/toolsrc/include/PostBuildLint_BuildPolicies.h +++ b/toolsrc/include/PostBuildLint_BuildPolicies.h @@ -4,7 +4,7 @@ namespace vcpkg::PostBuildLint::BuildPolicies { - enum class backing_enum_t + enum class BackingEnum { NULLVALUE = 0, EMPTY_PACKAGE, @@ -13,28 +13,28 @@ namespace vcpkg::PostBuildLint::BuildPolicies EMPTY_INCLUDE_FOLDER }; - struct type + struct Type { - constexpr type() : backing_enum(backing_enum_t::NULLVALUE) {} - constexpr explicit type(backing_enum_t backing_enum) : backing_enum(backing_enum) { } - constexpr operator backing_enum_t() const { return backing_enum; } + constexpr Type() : backing_enum(BackingEnum::NULLVALUE) {} + constexpr explicit Type(BackingEnum backing_enum) : backing_enum(backing_enum) { } + constexpr operator BackingEnum() const { return backing_enum; } const std::string& toString() const; const std::string& cmake_variable() const; private: - backing_enum_t backing_enum; + BackingEnum backing_enum; }; static const std::string ENUM_NAME = "vcpkg::PostBuildLint::BuildPolicies"; - static constexpr type NULLVALUE(backing_enum_t::NULLVALUE); - static constexpr type EMPTY_PACKAGE(backing_enum_t::EMPTY_PACKAGE); - static constexpr type DLLS_WITHOUT_LIBS(backing_enum_t::DLLS_WITHOUT_LIBS); - static constexpr type ONLY_RELEASE_CRT(backing_enum_t::ONLY_RELEASE_CRT); - static constexpr type EMPTY_INCLUDE_FOLDER(backing_enum_t::EMPTY_INCLUDE_FOLDER); + static constexpr Type NULLVALUE(BackingEnum::NULLVALUE); + static constexpr Type EMPTY_PACKAGE(BackingEnum::EMPTY_PACKAGE); + static constexpr Type DLLS_WITHOUT_LIBS(BackingEnum::DLLS_WITHOUT_LIBS); + static constexpr Type ONLY_RELEASE_CRT(BackingEnum::ONLY_RELEASE_CRT); + static constexpr Type EMPTY_INCLUDE_FOLDER(BackingEnum::EMPTY_INCLUDE_FOLDER); - static constexpr std::array<type, 4> values = { EMPTY_PACKAGE, DLLS_WITHOUT_LIBS, ONLY_RELEASE_CRT, EMPTY_INCLUDE_FOLDER }; + static constexpr std::array<Type, 4> values = { EMPTY_PACKAGE, DLLS_WITHOUT_LIBS, ONLY_RELEASE_CRT, EMPTY_INCLUDE_FOLDER }; - type parse(const std::string& s); + Type parse(const std::string& s); } |
