[haiku-development] Re: [haiku-development]
- From: Gerald Zajac <zajacg@xxxxxxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Tue, 23 Oct 2007 16:08:08 -0400
Jérôme Duval wrote:
2007/10/23, Ryan Leavengood <leavengood@xxxxxxxxx>:
I REALLY think we need to provide a tool to check code against our
guidelines. I need to do some research, but I'm sure there are tools
for C++ to do this.
Some time ago, I tried http://astyle.sourceforge.net/ In the end, I
had to dive in the code of the tool to have it behave nearer our
style.
I use astyle for reformatting source files and find that it comes very
close to satisfying our style guidelines if the following command is
used: astyle --style=kr -T -p <file name>
I use it for reformatting the X.org source code that I use in a Haiku
video driver. The only problem that I have encountered with astyle is
that it does not replace embedded spaces with tabs; however, I have my
own command line utility for replacing spaces with tabs.
I'm using an older version (V1.15.3) of astyle since the newest version
(V1.21) will not compile under BeOS or Zeta because of the old compiler
that we use.
Regards,
Gerald
- Follow-Ups:
- [haiku-development] Re: [haiku-development]
- From: François Revol
- References:
- [haiku-development]
- From: Fredrik Modéen
- [haiku-development] Re: [haiku-development]
- From: Ryan Leavengood
- [haiku-development] Re: [haiku-development]
- From: Jérôme Duval
Other related posts:
- » [haiku-development] Re: [haiku-development]
- » [haiku-development] Re: [haiku-development]
- » [haiku-development] Re: [haiku-development]
- » [haiku-development] Re: [haiku-development]
- » [haiku-development] Re: [haiku-development]
- » [haiku-development] Re: [haiku-development]
- » [haiku-development] Re: [haiku-development]
- » [haiku-development] Re: [haiku-development]
- » [haiku-development] Re: [haiku-development]
- » [haiku-development] Re: [haiku-development]
- » [haiku-development] Re: [haiku-development]
- » [haiku-development] Re: [haiku-development]
- » [haiku-development] Re: [haiku-development]
2007/10/23, Ryan Leavengood <leavengood@xxxxxxxxx>:
I REALLY think we need to provide a tool to check code against our guidelines. I need to do some research, but I'm sure there are tools for C++ to do this.
Some time ago, I tried http://astyle.sourceforge.net/ In the end, I had to dive in the code of the tool to have it behave nearer our style.
- [haiku-development] Re: [haiku-development]
- From: François Revol
- [haiku-development]
- From: Fredrik Modéen
- [haiku-development] Re: [haiku-development]
- From: Ryan Leavengood
- [haiku-development] Re: [haiku-development]
- From: Jérôme Duval