Re: Is there any tool can format source code according to kernel coding rule?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Hi all,
>
> I am just wondering whether there is a script/tool which format source code
> according to kernel coding rule automatically? Such as tab, space, brace,
> etc.  
>
> Thanks very much in advance!
>
> Best Regards
> Nan Xiao

If your using vi(m) in command mode type gg=G this will indent your code . if your want kernel coding rules compatibility run your code through scripts/Lindent. There is a vim plugi-in http://www.vim.org/scripts/script.php?script_id=4369 will do the same.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux