Use CStringView instead of const char*
MODIFY
include/PostBuildLint_BuildPolicies.h
include/PostBuildLint_BuildPolicies.h
#pragma once
+#include "CStringView.h"
#include <array>
#include <string>
@@ -30,7 +31,7 @@ namespace vcpkg::PostBuildLint
namespace BuildPoliciesC
{
- static constexpr const char* ENUM_NAME = "vcpkg::PostBuildLint::BuildPolicies";
+ static constexpr CStringView ENUM_NAME = "vcpkg::PostBuildLint::BuildPolicies";
static constexpr BuildPolicies NULLVALUE(BuildPolicies::BackingEnum::NULLVALUE);
static constexpr BuildPolicies EMPTY_PACKAGE(BuildPolicies::BackingEnum::EMPTY_PACKAGE);

MODIFY
include/PostBuildLint_BuildType.h
include/PostBuildLint_BuildType.h
#pragma once
+#include "CStringView.h"
#include "PostBuildLint_ConfigurationType.h"
#include "PostBuildLint_LinkageType.h"
#include <array>
@@ -44,7 +45,7 @@ namespace vcpkg::PostBuildLint
namespace LC = LinkageTypeC;
using BE = BuildType::BackingEnum;
- static constexpr const char* ENUM_NAME = "vcpkg::PostBuildLint::BuildType";
+ static constexpr CStringView ENUM_NAME = "vcpkg::PostBuildLint::BuildType";
static constexpr BuildType DEBUG_STATIC = {BE::DEBUG_STATIC, CC::DEBUG, LC::STATIC};
static constexpr BuildType DEBUG_DYNAMIC = {BE::DEBUG_DYNAMIC, CC::DEBUG, LC::DYNAMIC};

MODIFY
include/PostBuildLint_ConfigurationType.h
include/PostBuildLint_ConfigurationType.h
#pragma once
-#pragma once
+#include "CStringView.h"
#include <string>
namespace vcpkg::PostBuildLint
@@ -25,7 +25,7 @@ namespace vcpkg::PostBuildLint
namespace ConfigurationTypeC
{
- static constexpr const char* ENUM_NAME = "vcpkg::PostBuildLint::ConfigurationType";
+ static constexpr CStringView ENUM_NAME = "vcpkg::PostBuildLint::ConfigurationType";
static constexpr ConfigurationType NULLVALUE(ConfigurationType::BackingEnum::NULLVALUE);
static constexpr ConfigurationType DEBUG(ConfigurationType::BackingEnum::DEBUG);

MODIFY
include/PostBuildLint_LinkageType.h
include/PostBuildLint_LinkageType.h
#pragma once
+#include "CStringView.h"
#include <string>
namespace vcpkg::PostBuildLint
@@ -26,7 +27,7 @@ namespace vcpkg::PostBuildLint
namespace LinkageTypeC
{
- static constexpr const char* ENUM_NAME = "vcpkg::PostBuildLint::LinkageType";
+ static constexpr CStringView ENUM_NAME = "vcpkg::PostBuildLint::LinkageType";
static constexpr LinkageType NULLVALUE(LinkageType::BackingEnum::NULLVALUE);
static constexpr LinkageType DYNAMIC(LinkageType::BackingEnum::DYNAMIC);

Use CStringView instead of const char*