Skip to content

Commit edf8d35

Browse files
Work around clang-format bug. (#864)
clang-format doesn't deal with missing newlines in some places well: it inserts them, but not in all the places it needs to, so we end up in a situation where running it multiple times produces different output than running it once. Work around by just manually inserting a newline.
1 parent 1ad0ece commit edf8d35

File tree

1 file changed

+1
-1
lines changed
  • src-electron/generator/matter/darwin/Framework/CHIP/templates

1 file changed

+1
-1
lines changed

src-electron/generator/matter/darwin/Framework/CHIP/templates/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ async function availability(clusterName, options) {
627627
);
628628
return `API_AVAILABLE(${availabilityStrings.join(
629629
', '
630-
)}) MTR_NEWLY_DEPRECATED("${options.hash.deprecationMessage}")`;
630+
)})\nMTR_NEWLY_DEPRECATED("${options.hash.deprecationMessage}")`;
631631
}
632632
return `MTR_NEWLY_DEPRECATED("${options.hash.deprecationMessage}")`;
633633
}

0 commit comments

Comments
 (0)