8000 make: validate C format by AkihiroSuda · Pull Request #1699 · opencontainers/runc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

make: validate C format #1699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 25, 2018
Merged

Conversation

AkihiroSuda
Copy link
Member

Signed-off-by: Akihiro Suda suda.akihiro@lab.ntt.co.jp

Options for indent are taken from #950 (comment)

@cyphar PTAL?

static int clone_parent(jmp_buf *env, int jmpval) __attribute__ ((noinline));
static int clone_parent(jmp_buf *env, int jmpval)
static int clone_parent(jmp_buf * env, int jmpval) __attribute__ ((noinline));
static int clone_parent(jmp_buf * env, int jmpval)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change doesn't appear to make sense -- jmp_buf *env is the Linux kernel style, no? I'll have to double check why indent is doing that...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to man:

You must use the ‘-T’ option to tell indent the name of all the typenames in your program that are defined by typedef.

Updated PR

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
@cyphar
Copy link
Member
cyphar commented Jan 25, 2018

Should we be running the check as part of CI? Maybe you can add it to .travis.yml?

LGTM otherwise.

Approved with PullApprove

@AkihiroSuda
Copy link
Member Author

It is already added. (travis -> make ci -> make validate -> validate-c)

@cyphar
Copy link
Member
cyphar commented Jan 25, 2018

Ah, my apologies. Still LGTM.

@crosbymichael
Copy link
Member
crosbymichael commented Jan 25, 2018

LGTM

Approved with PullApprove

@crosbymichael crosbymichael merged commit c4e4bb0 into opencontainers:master Jan 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0