Source: make some cmValue methods constexpr

This commit is contained in:
AJIOB authored and Alex Overchenko committed 2026-10-21 12:13:26 -04:00
1 parent ae180314b6
commit 7fd73de51a
1 file changed
+5 -2
+5 -2
View File
@@ -136,11 +136,14 @@ public:
}
static bool IsNOTFOUND(cm::string_view) noexcept;
static bool IsEmpty(char const* value) noexcept
static constexpr bool IsEmpty(char const* value) noexcept
{
return !value || *value == '\0';
}
static bool IsEmpty(cm::string_view value) noexcept { return value.empty(); }
static constexpr bool IsEmpty(cm::string_view value) noexcept
{
return value.empty();
}
/**
* Does a string indicates that CMake/CPack/CTest internally