Bug 115189

Summary: The word "set" breaks KDevelop's Code Formatting
Product: [Applications] kdevelop Reporter: Tassilo Horn <tassilo>
Component: AstyleAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version First Reported In: 3.2.3   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Tassilo Horn 2005-10-27 12:54:04 UTC
Version:           3.2.3 (using KDE 3.4.3, Gentoo)
Compiler:          Target: i686-pc-linux-gnu
OS:                Linux (i686) release 2.6.13-ckpp4

Here an example snipped of my code:

    case CustomGxlValueType_PR_set:
        for ( int i = 0; i < value->set->list.count; i++ )
        {
            writeValue( value->set->list.array[i] );
        }
        break;

When I click "Reformat Source" I get:

    case CustomGxlValueType_PR_set:
        for ( int i = 0; i < value->set
                ->list.count; i++ )
        {
            writeValue( value->set
                        ->list.array[i] );
        }
        break;

There's always an '\n' after value's member "set". I tried all predefined formatting styles, all with the same result. 

If I rename value's member "set" to "xset" or "Set" formatting works as expected.
Comment 1 Jens Dagerbo 2005-10-28 13:42:02 UTC
Dupe


*** This bug has been marked as a duplicate of 89543 ***