Project

General

Profile

Actions

Bug #8580

open

cstyle doesn't like closing bracket on separate line in function header

Added by Yuri Pankov over 3 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2017-08-14
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

$ cat t.c
int
main(
    arg1        /* comment */
)
{
}
$ cstyle -Ppc t.c
t.c: 4: continuation line should be indented by 4 spaces
$
Actions #1

Updated by Yuri Pankov over 3 years ago

  • Subject changed from cstyle doesn't like closing bracket on separate line in function prototypes to cstyle doesn't like closing bracket on separate line in function header
Actions #2

Updated by Gary Mills over 3 years ago

What happens if you indent that bracket by four spaces?

Actions #3

Updated by Yuri Pankov over 3 years ago

Gary Mills wrote:

What happens if you indent that bracket by four spaces?

Even if it would silence cstyle, it doesn't make much sense right?

Actions

Also available in: Atom PDF