Bug 61375 - Add possibility to configure linebreak before opening brace in C++
Summary: Add possibility to configure linebreak before opening brace in C++
Status: CONFIRMED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 1.1
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-17 23:39 UTC by Unknown
Modified: 2015-02-20 17:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Farrell 2003-07-17 23:39:53 UTC
Version:           1.1 (using KDE KDE 3.1.3KDE 1.2)
Installed from:    Compiled From Sources0Compiled From Sources
OS:          Linux

It would be nice if the one could set if/or not umbrello code generation wizard makes a linebreak before open brakets, since many people use this style to write C++ code 
or using templets or so. (But nothing to hurry)

But in general, great job!
Comment 1 Stephan Kulow 2004-06-01 19:12:43 UTC
Replaced drfnbee@wanadoo.fr with null@kde.org due to bounces by reporter
Comment 2 Gavin C. Flower 2005-08-02 11:16:20 UTC
I would also use this in C and Java code.
Comment 3 Paulo Roberto Rodrigues Sehn 2005-08-02 16:01:43 UTC
I would like to suggest that we use some kind of code formater to be
applyed during code generation. Users could select their settings and
Umbrello will use this to generate code. I guess it'll be a more
complete solution for this kind of issue.

On 2 Aug 2005 09:16:21 -0000, Gavin C. Flower <GavinFlower@yahoo.com> wrote:
[bugs.kde.org quoted mail]
Comment 4 Gavin C. Flower 2005-08-03 02:31:08 UTC
public class Agent 
    extends Human
    implements Employee,
               Insured,
               CompanyRepresentative
{
    ...
    public getOpenJobs(Date pAfterDate )
        throws IOException,
               SQLException
    {
        ...
    }
    ...
}


I would options to control formatting to allow the above style:

A - align brackets on left hand side consistently

B - indent extends

C - indent implements

D - indent subsequent interfaces in line with first one

E - indent throws

F - indent subsequent exceptions in line with first one

G - force if/else blocks to be enclosed in brackets

H - add blank line between methods 
    (excluding the one before the closing bracket of the class)

I - add prefix to generated parameters (eg pAfterDate)