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

@ -157,7 +157,7 @@ static void dump_binding(yajl_gen gen, Binding *bind) {
y(integer, bind->keycode);
ystr("input_type");
ystr((const char*)(bind->input_type == B_KEYBOARD ? "keyboard" : "mouse"));
ystr((const char *)(bind->input_type == B_KEYBOARD ? "keyboard" : "mouse"));
ystr("symbol");
if (bind->symbol == NULL)
@ -397,7 +397,8 @@ void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart) {
ystr("transient_for");
if (con->window->transient_for == XCB_NONE)
y(null);
else y(integer, con->window->transient_for);
else
y(integer, con->window->transient_for);
y(map_close);
}