List Info

Thread: Using 'uncrustify' as replacement for astyle in KDevelop4




Using 'uncrustify' as replacement for astyle in KDevelop4
user name
2006-07-22 18:43:27
I don't much like astyle as it is buggy and the development
has stalled.

I've approached jpetso about the feasability of using
kdevelop-pg and to 
generate a source code beautifier.  Well, chouimat brought
to my attention 
uncrustify:

http://uncrustify.
sourceforge.net/

From what I can see so far, I like it.  It is already more
feature rich than 
AStyle and has an active developer from what I can see of
the svn logs.  He 
is also using a test harness which is very important for
this kind of 
program.

I found a bug already, but I think it is probably easy to
fix:

http://s
ourceforge.net/tracker/index.php?func=detail&aid=1527030
&group_id=153164&atid=786647

From what I can tell, it doesn't mess up the comments and
the pointer 
operators like AStyle.  I'd very much like some default
config(s) included 
with the program -- like Qt Style -- and others, but I think
it shows 
promise.

Thoughts,

Adam

_______________________________________________
KDevelop-devel mailing list
KDevelop-develbarney.cs.uni-potsdam.de
http://barney.cs.uni-potsdam.de/mailman/listinfo/
kdevelop-devel
Using 'uncrustify' as replacement for astyle in KDevelop4
user name
2006-07-22 21:02:23
On 7/22/06, Adam Treat <treatkde.org> wrote:
(snip)
> http://uncrustify.
sourceforge.net/
>
> From what I can see so far, I like it.  It is already
more feature rich than
> AStyle and has an active developer from what I can see
of the svn logs.  He
> is also using a test harness which is very important
for this kind of
> program.
>
> I found a bug already, but I think it is probably easy
to fix:

It was.  I'll include the fix in today's 0.0.23 release.

> From what I can tell, it doesn't mess up the comments
and the pointer
> operators like AStyle.  I'd very much like some
default config(s) included
> with the program -- like Qt Style -- and others, but I
think it shows
> promise.

I'd be happy to add any configs you guys come up with.

Ben

_______________________________________________
KDevelop-devel mailing list
KDevelop-develbarney.cs.uni-potsdam.de
http://barney.cs.uni-potsdam.de/mailman/listinfo/
kdevelop-devel
Using 'uncrustify' as replacement for astyle in KDevelop4
user name
2006-07-22 21:23:04
Thanks Ben!  Talk about your fast turn around time!

On Saturday 22 July 2006 5:02 pm, Ben Gardner wrote:
> On 7/22/06, Adam Treat <treatkde.org> wrote:
> (snip)
>
> > http://uncrustify.
sourceforge.net/
> >
> > From what I can see so far, I like it.  It is
already more feature rich
> > than AStyle and has an active developer from what
I can see of the svn
> > logs.  He is also using a test harness which is
very important for this
> > kind of program.
> >
> > I found a bug already, but I think it is probably
easy to fix:
>
> It was.  I'll include the fix in today's 0.0.23
release.

You are seriously making me think that uncrustify is the
right replacement for 
astyle 

> > From what I can tell, it doesn't mess up the
comments and the pointer
> > operators like AStyle.  I'd very much like some
default config(s)
> > included with the program -- like Qt Style -- and
others, but I think it
> > shows promise.
>
> I'd be happy to add any configs you guys come up with.

Awesome.  I'll try and come up with some.

> Ben
>
> _______________________________________________
> KDevelop-devel mailing list
> KDevelop-develbarney.cs.uni-potsdam.de
> http://barney.cs.uni-potsdam.de/mailman/listinfo/
kdevelop-devel

_______________________________________________
KDevelop-devel mailing list
KDevelop-develbarney.cs.uni-potsdam.de
http://barney.cs.uni-potsdam.de/mailman/listinfo/
kdevelop-devel
Using 'uncrustify' as replacement for astyle in KDevelop4
user name
2006-07-24 05:39:59
On Saturday 22 July 2006 22:43, Adam Treat wrote:
> I don't much like astyle as it is buggy and the
development has stalled.
>
> I've approached jpetso about the feasability of using
kdevelop-pg and to
> generate a source code beautifier.  Well, chouimat
brought to my attention
> uncrustify:
>
> http://uncrustify.
sourceforge.net/
>
> From what I can see so far, I like it.  It is already
more feature rich
> than AStyle and has an active developer from what I can
see of the svn
> logs.  He is also using a test harness which is very
important for this
> kind of program.

Hmm, in 3.*, the automatic formatting done during editing,
and "reformat" 
functionality provided by astyle were completely unrelated.
If you go to 
every line of source file and select "Align"
kate command you get one look of 
source, and if you use "reformat" we get
another.

I think that makes "reformat" functionality much
less useful, so the right 
solution is making both Kate and "reformat" use
one underlying engine. I 
think changing from astyle to anything else is not going to
be better that 
the current situation.

- Volodya

_______________________________________________
KDevelop-devel mailing list
KDevelop-develbarney.cs.uni-potsdam.de
http://barney.cs.uni-potsdam.de/mailman/listinfo/
kdevelop-devel
Using 'uncrustify' as replacement for astyle in KDevelop4
user name
2006-07-24 05:39:59
On Saturday 22 July 2006 22:43, Adam Treat wrote:
> I don't much like astyle as it is buggy and the
development has stalled.
>
> I've approached jpetso about the feasability of using
kdevelop-pg and to
> generate a source code beautifier.  Well, chouimat
brought to my attention
> uncrustify:
>
> http://uncrustify.
sourceforge.net/
>
> From what I can see so far, I like it.  It is already
more feature rich
> than AStyle and has an active developer from what I can
see of the svn
> logs.  He is also using a test harness which is very
important for this
> kind of program.

Hmm, in 3.*, the automatic formatting done during editing,
and "reformat" 
functionality provided by astyle were completely unrelated.
If you go to 
every line of source file and select "Align"
kate command you get one look of 
source, and if you use "reformat" we get
another.

I think that makes "reformat" functionality much
less useful, so the right 
solution is making both Kate and "reformat" use
one underlying engine. I 
think changing from astyle to anything else is not going to
be better that 
the current situation.

- Volodya

_______________________________________________
KDevelop-devel mailing list
KDevelop-develbarney.cs.uni-potsdam.de
http://barney.cs.uni-potsdam.de/mailman/listinfo/
kdevelop-devel
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )