mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
refactor: add consteval to compile time functions in debug manager
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
97799b3faf
commit
2f1128fdcd
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user