mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 05:16:58 +00:00
Source: make some cmValue methods constexpr
This commit is contained in:
1 parent
ae180314b6
commit
7fd73de51a
1 file changed
+5
-2
+5
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user