(UPDATED) astyle plugin - for astyle 1.19

Megan Webb mwebb at unwired.com.au
Sat Oct 14 21:37:58 UTC 2006


Matt Rogers wrote:
> I've attached the patch for the changes so that it's easy for others to apply. 
> I haven't reviewed the changes yet, but thanks so much for the contribution!
> --
> Matt
>   
Thanks!  If it passes it I think it fixes:

Bug 91316 <http://bugs.kde.org/show_bug.cgi?id=91316>: code beautifier
dosn't work with a method called "remove()"
Bug 68810 <http://bugs.kde.org/show_bug.cgi?id=68810>: wrong behaviour
of "reformat source" (C++)
Bug 70818 <http://bugs.kde.org/show_bug.cgi?id=70818>: Source formatter
setup example window is not implemented for custom format
    (Though I know that some format types, could display better, and
that some of the examples are hard to see.
      Still thinking how to improve this.  Decided to submit what I had
so that other people can benefit, and I don't have
      to patch my build with the updated plugin each release.)
Bug 81586 <http://bugs.kde.org/show_bug.cgi?id=81586>: Incorrect
formatting of classes with inline functions
Bug 71574 <http://bugs.kde.org/show_bug.cgi?id=71574>: reformat source
command messes up C99 initializers
Bug 89543 <http://bugs.kde.org/show_bug.cgi?id=89543>: Unwanted new line
and Tab after a function name 'set'
    (My pet hate bug. The one that motivated me to updated the plugin)
Bug 135272 <http://bugs.kde.org/show_bug.cgi?id=135272>: Formatting
Error in C++ Code
Bug 132112 <http://bugs.kde.org/show_bug.cgi?id=132112>: user defined
formatting spaces
   (though I think that no spaces outside, and remove unnecessary spaces
should mean that there are no spaces left outside...)


I tried the examples (when given) with a few different formatting options.


These are listed astyle bugs:
Bug 69106 <http://bugs.kde.org/show_bug.cgi?id=69106>: reformat
incorrect if a keyword is embeded
Bug 70071 <http://bugs.kde.org/show_bug.cgi?id=70071>: I would like to
see a auto-format customization item to control alignment of parameters
for function definitions.
Bug 89140 <http://bugs.kde.org/show_bug.cgi?id=89140>: Code formatting
parameter list alignment with leading commas fails
  (The options affect this. The predefined styles are worst.)
Bug 92342 <http://bugs.kde.org/show_bug.cgi?id=92342>: Source formatter
inlines every line one more time more then the previous one
 (This is a duplicate of Bug 89140  IMHO)
Bug 107333 <http://bugs.kde.org/show_bug.cgi?id=107333>: C Code
Formater: Wrong indention when using return in methodname
  (This is a duplicate of Bug 69106 IMHO)
Bug 108666 <http://bugs.kde.org/show_bug.cgi?id=108666>: Source
formatter messes up literal strings
Bug 120357 <http://bugs.kde.org/show_bug.cgi?id=120357>: The formatter
squashes indentation to the far left in the #else section of a #ifdef
#else #endif sequence.


Other:
Bug 111205 <http://bugs.kde.org/show_bug.cgi?id=111205>: "Reformat
source code" doesn't obey indentation options
 (What is this bug?? astyle isn't meant to try and reformat random text
files - only C,C++,C# and Java source files.*)*





More information about the KDevelop-devel mailing list