Skip to content

Commit 01a065b

Browse files
restyled-commitstcarmelveilleux
authored andcommitted
Restyled by clang-format
1 parent 92cb7a7 commit 01a065b

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/app/cluster-building-blocks/QuieterReporting.h

+9-5
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ enum class QuieterReportingPolicyEnum
3939
enum class AttributeDirtyState
4040
{
4141
kNoReportNeeded = 0,
42-
kMustReport = 1,
42+
kMustReport = 1,
4343
};
4444

4545
using QuieterReportingPolicyFlags = BitFlags<QuieterReportingPolicyEnum>;
@@ -169,9 +169,11 @@ class QuieterReportingAttribute
169169
* @param newValue - new value to set for the attribute
170170
* @param now - system monotonic timestamp at the time of the call
171171
* @param changedPredicate - functor to possibly override dirty state
172-
* @return AttributeDirtyState::kMustReport if attribute must be marked dirty right away, or AttributeDirtyState::kNoReportNeeded otherwise.
172+
* @return AttributeDirtyState::kMustReport if attribute must be marked dirty right away, or
173+
* AttributeDirtyState::kNoReportNeeded otherwise.
173174
*/
174-
AttributeDirtyState SetValue(const chip::app::DataModel::Nullable<T> & newValue, Timestamp now, SufficientChangePredicate changedPredicate)
175+
AttributeDirtyState SetValue(const chip::app::DataModel::Nullable<T> & newValue, Timestamp now,
176+
SufficientChangePredicate changedPredicate)
175177
{
176178
bool isChangeOfNull = newValue.IsNull() ^ mValue.IsNull();
177179
bool areBothValuesNonNull = !newValue.IsNull() && !mValue.IsNull();
@@ -181,7 +183,8 @@ class QuieterReportingAttribute
181183
bool isDecrement = areBothValuesNonNull && (*newValue < *mValue);
182184

183185
bool isNewlyDirty = isChangeOfNull;
184-
isNewlyDirty = isNewlyDirty || (mPolicyFlags.Has(QuieterReportingPolicyEnum::kMarkDirtyOnChangeToFromZero) && changeToFromZero);
186+
isNewlyDirty =
187+
isNewlyDirty || (mPolicyFlags.Has(QuieterReportingPolicyEnum::kMarkDirtyOnChangeToFromZero) && changeToFromZero);
185188
isNewlyDirty = isNewlyDirty || (mPolicyFlags.Has(QuieterReportingPolicyEnum::kMarkDirtyOnDecrement) && isDecrement);
186189
isNewlyDirty = isNewlyDirty || (mPolicyFlags.Has(QuieterReportingPolicyEnum::kMarkDirtyOnIncrement) && isIncrement);
187190

@@ -211,7 +214,8 @@ class QuieterReportingAttribute
211214
*
212215
* @param newValue - new value to set for the attribute
213216
* @param now - system monotonic timestamp at the time of the call
214-
* @return AttributeDirtyState::kMustReport if attribute must be marked dirty right away, or AttributeDirtyState::kNoReportNeeded otherwise.
217+
* @return AttributeDirtyState::kMustReport if attribute must be marked dirty right away, or
218+
* AttributeDirtyState::kNoReportNeeded otherwise.
215219
*/
216220
AttributeDirtyState SetValue(const chip::app::DataModel::Nullable<T> & newValue, Timestamp now)
217221
{

0 commit comments

Comments
 (0)