Skip to content

Commit 2f1128f

Browse files
refactor: add consteval to compile time functions in debug manager
Signed-off-by: Mateusz Hoppe <[email protected]>
1 parent 97799b3 commit 2f1128f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shared/source/debug_settings/debug_settings_manager.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ class DebugSettingsManager : NEO::NonCopyableAndNonMovableClass {
125125
DebugSettingsManager(const char *registryPath);
126126
~DebugSettingsManager();
127127

128-
static constexpr bool registryReadAvailable() {
128+
static consteval bool registryReadAvailable() {
129129
return (debugLevel == DebugFunctionalityLevel::full) || (debugLevel == DebugFunctionalityLevel::regKeys);
130130
}
131131

132-
static constexpr bool disabled() {
132+
static consteval bool disabled() {
133133
return debugLevel == DebugFunctionalityLevel::none;
134134
}
135135

@@ -147,7 +147,7 @@ class DebugSettingsManager : NEO::NonCopyableAndNonMovableClass {
147147
return readerImpl.get();
148148
}
149149

150-
static constexpr const char *getNonReleaseKeyName(const char *key) {
150+
static consteval const char *getNonReleaseKeyName(const char *key) {
151151
return (disabled() && PURGE_DEBUG_KEY_NAMES) ? "" : key;
152152
}
153153

0 commit comments

Comments
 (0)