This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: How my codes comply with gcc code formatting?
- From: lin zuojian <manjian2006 at gmail dot com>
- To: Marek Polacek <polacek at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 5 Mar 2014 14:35:47 +0800
- Subject: Re: How my codes comply with gcc code formatting?
- Authentication-results: sourceware.org; auth=none
- References: <20140305033159 dot GA21008 at ubuntu> <20140305062835 dot GO16545 at redhat dot com>
On Wed, Mar 05, 2014 at 07:28:35AM +0100, Marek Polacek wrote:
> On Wed, Mar 05, 2014 at 11:31:59AM +0800, lin zuojian wrote:
> > Hi,
> > I have summited a patch in this ml.But the difficult part may be the
> > code formatting.I am using vim as my editor.
>
> I'm not sure what you asking for here. But to learn how to format
> your code, I think just look at the GCC source code and model your
> code after that.
>
> Marek
Hi Marek,
I am not understanding the standard.For example,should I use \t
instead of space?Should I use 4 spaces as indent or 2?
--
Regards
lin zuojian