clang-tidy

This commit is contained in:
J. Nick Koston 2025-07-05 14:50:17 -05:00
parent 294bd4d042
commit 9ded501402
No known key found for this signature in database

View File

@ -11,11 +11,11 @@ static const char *const TAG = "light";
// Macro to reduce repetitive setter code // Macro to reduce repetitive setter code
#define IMPLEMENT_LIGHT_CALL_SETTER(name, type, flag) \ #define IMPLEMENT_LIGHT_CALL_SETTER(name, type, flag) \
LightCall &LightCall::set_##name(optional<type> name) { \ LightCall &LightCall::set_##name(optional<type>(name)) { \
if (name.has_value()) { \ if ((name).has_value()) { \
this->name##_ = name.value(); \ this->name##_ = (name).value(); \
} \ } \
this->set_flag_(flag, name.has_value()); \ this->set_flag_(flag, (name).has_value()); \
return *this; \ return *this; \
} \ } \
LightCall &LightCall::set_##name(type name) { \ LightCall &LightCall::set_##name(type name) { \