Ensure we're more specific about clang format options and include order

This commit is contained in:
Marc Di Luzio
2019-05-26 11:55:05 +01:00
parent 2e67906402
commit e537caf170
9 changed files with 32 additions and 31 deletions

View File

@ -36,8 +36,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "common-helpers.h"
#include "common-logging.h"
#include "gamemode-config.h"
#include "gamemode.h"
#include "gamemode-config.h"
#include "build-config.h"
@ -602,10 +602,12 @@ int game_mode_context_query_status(GameModeContext *self, pid_t client, pid_t re
*/
static GameModeClient *game_mode_client_new(pid_t pid, char *executable)
{
/* clang-format off */
GameModeClient c = {
.next = NULL,
.pid = pid,
};
/* clang-format on */
GameModeClient *ret = NULL;
ret = calloc(1, sizeof(struct GameModeClient));
@ -794,4 +796,4 @@ int game_mode_reload_config(GameModeContext *self)
start_reaper_thread(self);
return 0;
}
}