mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
Enums::toString() -> Enums::to_string()
This commit is contained in:
parent
4a8b2ed1cd
commit
ccbb2ebcda
@ -4,7 +4,7 @@
|
||||
|
||||
namespace vcpkg::Enums
|
||||
{
|
||||
std::string nullvalue_toString(const std::string& enum_name);
|
||||
std::string nullvalue_to_string(const std::string& enum_name);
|
||||
|
||||
[[noreturn]]
|
||||
void nullvalue_used(const LineInfo& line_info, const std::string& enum_name);
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
namespace vcpkg::PostBuildLint::BuildPolicies
|
||||
{
|
||||
static const std::string NULLVALUE_STRING = Enums::nullvalue_toString(ENUM_NAME);
|
||||
static const std::string NULLVALUE_STRING = Enums::nullvalue_to_string(ENUM_NAME);
|
||||
|
||||
static const std::string NAME_EMPTY_PACKAGE = "PolicyEmptyPackage";
|
||||
static const std::string NAME_DLLS_WITHOUT_LIBS = "PolicyDLLsWithoutLIBs";
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
namespace vcpkg::PostBuildLint::ConfigurationType
|
||||
{
|
||||
static const std::string NULLVALUE_STRING = Enums::nullvalue_toString(ENUM_NAME);
|
||||
static const std::string NULLVALUE_STRING = Enums::nullvalue_to_string(ENUM_NAME);
|
||||
|
||||
static const std::string NAME_DEBUG = "Debug";
|
||||
static const std::string NAME_RELEASE = "Release";
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
namespace vcpkg::PostBuildLint::LinkageType
|
||||
{
|
||||
static const std::string NULLVALUE_STRING = Enums::nullvalue_toString(ENUM_NAME);
|
||||
static const std::string NULLVALUE_STRING = Enums::nullvalue_to_string(ENUM_NAME);
|
||||
|
||||
static const std::string NAME_DYNAMIC = "dynamic";
|
||||
static const std::string NAME_STATIC = "static";
|
||||
|
@ -94,7 +94,7 @@ namespace vcpkg::Commands::Build
|
||||
|
||||
const std::string& to_string(const BuildResult build_result)
|
||||
{
|
||||
static const std::string NULLVALUE_STRING = Enums::nullvalue_toString("vcpkg::Commands::Build::BuildResult");
|
||||
static const std::string NULLVALUE_STRING = Enums::nullvalue_to_string("vcpkg::Commands::Build::BuildResult");
|
||||
static const std::string SUCCEEDED_STRING = "SUCCEEDED";
|
||||
static const std::string BUILD_FAILED_STRING = "BUILD_FAILED";
|
||||
static const std::string POST_BUILD_CHECKS_FAILED_STRING = "POST_BUILD_CHECKS_FAILED";
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
namespace vcpkg::Enums
|
||||
{
|
||||
std::string nullvalue_toString(const std::string& enum_name)
|
||||
std::string nullvalue_to_string(const std::string& enum_name)
|
||||
{
|
||||
return Strings::format("%s_NULLVALUE", enum_name);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user