[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 120357] New: The formatter squashes indentation to the far left in the #else section of a #ifde
From:       kdevelop-bugs-admin () barney ! cs ! uni-potsdam ! de
Date:       2006-01-17 23:47:14
Message-ID: 20060118004712.120357.bigbob () shideleff ! com
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=120357         
           Summary: The formatter squashes indentation to the far left in
                    the #else section of a #ifdef #else #endif sequence.
           Product: kdevelop
           Version: unspecified
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-bugs kdevelop org
        ReportedBy: bigbob shideleff com


Version:           3.3 (using KDE 3.4.3, Gentoo)
Compiler:          gcc version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)
OS:                Linux (x86_64) release 2.6.14.2

The short description says it all. Create a file with the following:

> > > > > Begin Snippet>>>>>>
#ifdef A
main(void)
{}
#else
main(void)
{
#ifdef A
    testfuncA();
#else
testfuncB();
#endif
}
#endif
<<<<<<End Snippet<<<<<<<

And the auto formatter will format it as shown above. The testfuncB() should be \
indentted equal to testfuncA(). Instead it is squashed over to the left.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic