bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

indent: apply -pls to function prototype declarations (fwd)


From: Santiago Vila
Subject: indent: apply -pls to function prototype declarations (fwd)
Date: Sun, 4 Mar 2012 18:58:57 +0100 (CET)
User-agent: Alpine 2.02 (DEB 1266 2009-07-14)

Received this from the Debian BTS.
Please note that this one includes a patch.

---------- Forwarded message ----------
From: LRN <address@hidden>
To: Debian Bug Tracking System <address@hidden>
Date: Tue, 16 Aug 2011 15:41:32 +0300
Subject: indent: apply -pls to function prototype declarations

Package: indent
Version: 2.2.11
Severity: normal
Tags: upstream patch

At the moment indent -pls formats a code like this:

int foo ();
int foo () { bar; }

to be roughly like this:

int foo ();
int
foo ()
{
  bar;
}

That is, function prototypes are NOT affected by -pls.
I think i have a hack that will allow this to be changed (patch is attached).
I've tested it on GNUnet source tree and haven't found any anomalies (although
it might produce ones when used on other sources that follow different
conventions, or when combined with some other settings that i didn't use).

This bug should be submitted upstream.

[...]

Attachment: indent.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]