refactor: add consteval to compile time functions in debug manager

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe 2025-03-10 17:48:43 +00:00 committed by Compute-Runtime-Automation
parent 97799b3faf
commit 2f1128fdcd
1 changed files with 3 additions and 3 deletions

View File

@ -125,11 +125,11 @@ class DebugSettingsManager : NEO::NonCopyableAndNonMovableClass {
DebugSettingsManager(const char *registryPath);
~DebugSettingsManager();
static constexpr bool registryReadAvailable() {
static consteval bool registryReadAvailable() {
return (debugLevel == DebugFunctionalityLevel::full) || (debugLevel == DebugFunctionalityLevel::regKeys);
}
static constexpr bool disabled() {
static consteval bool disabled() {
return debugLevel == DebugFunctionalityLevel::none;
}
@ -147,7 +147,7 @@ class DebugSettingsManager : NEO::NonCopyableAndNonMovableClass {
return readerImpl.get();
}
static constexpr const char *getNonReleaseKeyName(const char *key) {
static consteval const char *getNonReleaseKeyName(const char *key) {
return (disabled() && PURGE_DEBUG_KEY_NAMES) ? "" : key;
}