toString() -> to_string in various enums
MODIFY
include/PostBuildLint_BuildPolicies.h
include/PostBuildLint_BuildPolicies.h
@@ -19,7 +19,7 @@ namespace vcpkg::PostBuildLint::BuildPolicies
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& to_string() const;
const std::string& cmake_variable() const;
private:

MODIFY
include/PostBuildLint_BuildType.h
include/PostBuildLint_BuildType.h
@@ -26,7 +26,7 @@ namespace vcpkg::PostBuildLint::BuildType
const ConfigurationType::Type& config() const;
const LinkageType::Type& linkage() const;
const std::regex& crt_regex() const;
- const std::string& toString() const;
+ const std::string& to_string() const;
private:
BackingEnum backing_enum;

MODIFY
include/PostBuildLint_ConfigurationType.h
include/PostBuildLint_ConfigurationType.h
@@ -17,7 +17,7 @@ namespace vcpkg::PostBuildLint::ConfigurationType
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& to_string() const;
private:
BackingEnum backing_enum;

MODIFY
include/PostBuildLint_LinkageType.h
include/PostBuildLint_LinkageType.h
@@ -16,7 +16,7 @@ namespace vcpkg::PostBuildLint::LinkageType
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& to_string() const;
private:
BackingEnum backing_enum;

MODIFY
src/PostBuildLint.cpp
src/PostBuildLint.cpp
@@ -528,11 +528,11 @@ namespace vcpkg::PostBuildLint
if (!libs_with_invalid_crt.empty())
{
- System::println(System::Color::warning, "Expected %s crt linkage, but the following libs had invalid crt linkage:", expected_build_type.toString());
+ System::println(System::Color::warning, "Expected %s crt linkage, but the following libs had invalid crt linkage:", expected_build_type.to_string());
System::println("");
for (const BuildType_and_file btf : libs_with_invalid_crt)
{
- System::println(" %s: %s", btf.file.generic_string(), btf.build_type.toString());
+ System::println(" %s: %s", btf.file.generic_string(), btf.build_type.to_string());
}
System::println("");

MODIFY
src/PostBuildLint_BuildPolicies.cpp
src/PostBuildLint_BuildPolicies.cpp
@@ -12,7 +12,7 @@ namespace vcpkg::PostBuildLint::BuildPolicies
static const std::string NAME_ONLY_RELEASE_CRT = "PolicyOnlyReleaseCRT";
static const std::string NAME_EMPTY_INCLUDE_FOLDER = "PolicyEmptyIncludeFolder";
- const std::string& Type::toString() const
+ const std::string& Type::to_string() const
{
switch (this->backing_enum)
{

MODIFY
src/PostBuildLint_BuildType.cpp
src/PostBuildLint_BuildType.cpp
@@ -61,7 +61,7 @@ namespace vcpkg::PostBuildLint::BuildType
}
}
- const std::string& Type::toString() const
+ const std::string& Type::to_string() const
{
static const std::string NAME_DEBUG_STATIC("Debug,Static");
static const std::string NAME_DEBUG_DYNAMIC("Debug,Dynamic");

MODIFY
src/PostBuildLint_ConfigurationType.cpp
src/PostBuildLint_ConfigurationType.cpp
@@ -10,7 +10,7 @@ namespace vcpkg::PostBuildLint::ConfigurationType
static const std::string NAME_DEBUG = "Debug";
static const std::string NAME_RELEASE = "Release";
- const std::string& Type::toString() const
+ const std::string& Type::to_string() const
{
switch (this->backing_enum)
{

MODIFY
src/PostBuildLint_LinkageType.cpp
src/PostBuildLint_LinkageType.cpp
@@ -10,7 +10,7 @@ namespace vcpkg::PostBuildLint::LinkageType
static const std::string NAME_DYNAMIC = "dynamic";
static const std::string NAME_STATIC = "static";
- const std::string& Type::toString() const
+ const std::string& Type::to_string() const
{
switch (this->backing_enum)
{

toString() -> to_string in various enums