ron minnich
2018-05-16 16:21:30 UTC
we've found another one of these
if (x)
y
z
things in firmware that were intended to be
if (x) {
y
z
}
we're kind of tired of this and want to blanket require {} for all ifs,
even one liners.
We want to convert the entire code base such that all if (E) S becomes if
(E) {S} but of course we don't want to add extra {}.
I don't totally trust my rusty spatch-foo to get this right and was
wondering if there's already such a thing out there.
ron
if (x)
y
z
things in firmware that were intended to be
if (x) {
y
z
}
we're kind of tired of this and want to blanket require {} for all ifs,
even one liners.
We want to convert the entire code base such that all if (E) S becomes if
(E) {S} but of course we don't want to add extra {}.
I don't totally trust my rusty spatch-foo to get this right and was
wondering if there's already such a thing out there.
ron