This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How my codes comply with gcc code formatting?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]