Ver Fonte

Add comments to the two parts where clang-format is off

Marc Di Luzio há 5 anos atrás
pai
commit
e9ab20be60
2 ficheiros alterados com 2 adições e 0 exclusões
  1. 1 0
      daemon/gamemode-context.c
  2. 1 0
      daemon/gamemode-dbus.c

+ 1 - 0
daemon/gamemode-context.c

@@ -602,6 +602,7 @@ 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)
 {
+	/* This bit seems to be formatted differently by different clang-format versions */
 	/* clang-format off */
 	GameModeClient c = {
 		.next = NULL,

+ 1 - 0
daemon/gamemode-dbus.c

@@ -216,6 +216,7 @@ static int method_refresh_config(sd_bus_message *m, void *userdata,
 /**
  * D-BUS vtable to dispatch virtual methods
  */
+/* This bit seems to be formatted differently by different clang-format versions */
 /* clang-format off */
 static const sd_bus_vtable gamemode_vtable[] = {
 	SD_BUS_VTABLE_START(0),