View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003507KWStylepublic2006-07-13 13:352008-02-11 17:25
ReporterAlex Neundorf 
Assigned ToJulien Jomier 
PrioritylowSeverityfeatureReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Summary0003507: check placement of curly braces
DescriptionIt would be nice if kwstyle could check the placement of curly braces:
if (1) {
  ...
}
vs.
if (1)
{
}

and also different rules for the placement of the braces for classes, namespaces etc.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0006438)
Alex Neundorf (reporter)
2007-02-15 14:42

Isn't this almost the same as 0003721 ?
How can I enabled this ?
(0006452)
Julien Jomier (manager)
2007-02-15 17:06

This is defined in the indent:
<Indent>
<type>SPACE</type>
<size>2</size>
<noHeader>true</noHeader>
<allowBlockLine>true</allowBlockLine>
</Indent>

Basically you should always have:
if(1)
[size]{
[size]
[size]}

I need to add some customization to allow difference placement for namespaces, etc...
(0010458)
M. Brantner (reporter)
2008-02-11 16:58

Is somebody working on this bug? It seems that the last change is some time ago.
I'm really interested in this feature.
(0010460)
Julien Jomier (manager)
2008-02-11 17:25

I'm going to take a look as soon as I can.

 Issue History
Date Modified Username Field Change
2008-02-11 16:58 M. Brantner Note Added: 0010458
2008-02-11 17:25 Julien Jomier Note Added: 0010460


Copyright © 2000 - 2018 MantisBT Team