mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
clang-format: disable wrong struct pointer declaration format
When we declare struct and at the same time declare variable pointer of this struct type, it looks like clang-format threats "*" as a multiplication operator instead of indirection (pointer declaration) operator and puts spaces on both sides, which looks wrong. Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
This commit is contained in:
parent
8580024838
commit
718eb06be3
5 changed files with 15 additions and 5 deletions
|
|
@ -20,9 +20,11 @@
|
|||
#include "ns.h"
|
||||
|
||||
futex_t sig_received;
|
||||
/* clang-format off */
|
||||
static struct {
|
||||
futex_t stage;
|
||||
} * test_shared_state;
|
||||
} *test_shared_state;
|
||||
/* clang-format on */
|
||||
|
||||
enum {
|
||||
TEST_INIT_STAGE = 0,
|
||||
|
|
|
|||
|
|
@ -19,11 +19,13 @@ enum {
|
|||
TEST_EXIT,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
struct shared {
|
||||
futex_t fstate;
|
||||
int parent_before_cr;
|
||||
int parent_after_cr;
|
||||
} * sh;
|
||||
} *sh;
|
||||
/* clang-format on */
|
||||
|
||||
int orphan(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -18,10 +18,12 @@ enum {
|
|||
TEST_EXIT,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
struct shared {
|
||||
futex_t fstate;
|
||||
int ppid_after_reparent;
|
||||
} * sh;
|
||||
} *sh;
|
||||
/* clang-format on */
|
||||
|
||||
int orphan(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -22,12 +22,14 @@
|
|||
const char *test_doc = "Check for signal delivery on file owners";
|
||||
const char *test_author = "Cyrill Gorcunov <gorcunov@openvz.org>";
|
||||
|
||||
/* clang-format off */
|
||||
struct params {
|
||||
int sigio;
|
||||
int pipe_flags[2];
|
||||
int pipe_pid[2];
|
||||
int pipe_sig[2];
|
||||
} * shared;
|
||||
} *shared;
|
||||
/* clang-format on */
|
||||
|
||||
static void signal_handler_io(int status)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue