run clang-format (3.5.0)

Not quite sure why there are so many differences. Perhaps we’ve gotten
out of the habit of running clang-format after every change.

I guess it’d be best to have a travis hook that runs clang-format for us
and reports any problems on pull requests.
This commit is contained in:
Michael Stapelberg
2015-03-01 17:16:03 +01:00
parent 0876bd621f
commit 091f1db39a
19 changed files with 90 additions and 90 deletions

View File

@ -42,17 +42,17 @@ bool rect_contains(Rect rect, uint32_t x, uint32_t y) {
}
Rect rect_add(Rect a, Rect b) {
return (Rect) {a.x + b.x,
a.y + b.y,
a.width + b.width,
a.height + b.height};
return (Rect){a.x + b.x,
a.y + b.y,
a.width + b.width,
a.height + b.height};
}
Rect rect_sub(Rect a, Rect b) {
return (Rect) {a.x - b.x,
a.y - b.y,
a.width - b.width,
a.height - b.height};
return (Rect){a.x - b.x,
a.y - b.y,
a.width - b.width,
a.height - b.height};
}
/*