DPDK usage discussions
 help / color / mirror / Atom feed
* Re: [dpdk-users] Why not extand tab into space in dpdk's coding style?
       [not found] <CAOE=1Z1xR5mKrotbNSJM6s-eAZb+f9=kbkeL=NEEzjrthmxyfg@mail.gmail.com>
@ 2017-06-09 10:15 ` Gaëtan Rivet
  0 siblings, 0 replies; only message in thread
From: Gaëtan Rivet @ 2017-06-09 10:15 UTC (permalink / raw)
  To: Sam; +Cc: users

Hi Sam,

On Fri, Jun 09, 2017 at 06:03:07PM +0800, Sam wrote:
> Now coding in dpdk, I find that lots of file use TABs and SPACEs together
> for indentation, mixed !!!
> 
> I don't know if this is due to some one prefer SPACE, others prefer TAB.
> 
> For ovs, its coding style restrict to use TAB to extand SPACE, why dpdk
> don't like this?

The coding style for DPDK is explained in [1]. Indentation is explained
in [2]. It is pretty close to LKCS.

For hard tabs / space mixes, usually this is the result of the proper
indentation not being modulo 8, the length of the tab. In this case, you
have to indent as much as possible with hard tabs and complete with
spaces.

There may be errors in coding style as it has not always been strictly
enforced, and some maintainers are less stringent on this, but the
choice has been made a long time ago and it is for using tabs.

[1]: http://dpdk.org/doc/guides/contributing/coding_style.html
[2]: http://dpdk.org/doc/guides/contributing/coding_style.html#c-indentation

Cheers,
-- 
Gaëtan Rivet
6WIND

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-09 10:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAOE=1Z1xR5mKrotbNSJM6s-eAZb+f9=kbkeL=NEEzjrthmxyfg@mail.gmail.com>
2017-06-09 10:15 ` [dpdk-users] Why not extand tab into space in dpdk's coding style? Gaëtan Rivet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).