public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: Alexei Fedorov <Alexei.Fedorov@arm.com>
Cc: "Kinney, Michael D" <michael.d.kinney@intel.com>,
	 "liming.gao@intel.com" <liming.gao@intel.com>,
	 "leif.lindholm@linaro.org" <leif.lindholm@linaro.org>,
	 "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
	Lorenzo Pieralisi <Lorenzo.Pieralisi@arm.com>,
	 Evan Lloyd <Evan.Lloyd@arm.com>,
	Mitch Ishihara <Mitch.Ishihara@arm.com>,
	 Sami Mujawar <Sami.Mujawar@arm.com>,
	Girish Pathak <Girish.Pathak@arm.com>
Subject: Re: [PATCH] MdePkg/IndustryStandard: add definitions for ACPI 6.0 IORT
Date: Tue, 18 Apr 2017 12:11:06 +0100	[thread overview]
Message-ID: <CAKv+Gu_3bvnT8syT8MyHqdMin+3Q4Oigs1wQbT+7V_cHNSedNA@mail.gmail.com> (raw)
In-Reply-To: <AM5PR0801MB19558242B08574C830D596D59A190@AM5PR0801MB1955.eurprd08.prod.outlook.com>

On 18 April 2017 at 12:01, Alexei Fedorov <Alexei.Fedorov@arm.com> wrote:
> So, should we follow the Coding Standards Specification or can just ditch it?
>

We all know that Tianocore/EDK2 has a steep learning curve, especially
when it comes to developers coming from the Linux/open source side.

This page

https://github.com/tianocore/tianocore.github.io/wiki/EDK-II-Specifications

lists 11 (!) different specs one must adhere to when contributing code
to EDK2. Some of them are mandatory or your code will not build, or
will build but will not run.

In my opinion, adhering to the specs is already difficult enough
without having to follow arbitrary rules which are so blatantly
violated in core areas of the tree (MdePkg and MdeModulePkg). So my
advice is simply to ignore the coding standard altogether, and in my
reviews, I am usually very lax about violations.

-- 
Ard.





>
> -----Original Message-----
> From: Ard Biesheuvel [mailto:ard.biesheuvel@linaro.org]
> Sent: 18 April 2017 11:13
> To: Alexei Fedorov <Alexei.Fedorov@arm.com>; Kinney, Michael D <michael.d.kinney@intel.com>; liming.gao@intel.com; leif.lindholm@linaro.org
> Cc: edk2-devel@lists.01.org; Lorenzo Pieralisi <Lorenzo.Pieralisi@arm.com>; Evan Lloyd <Evan.Lloyd@arm.com>
> Subject: Re: [edk2] [PATCH] MdePkg/IndustryStandard: add definitions for ACPI 6.0 IORT
>
> On 18 April 2017 at 11:07, Alexei Fedorov <Alexei.Fedorov@arm.com> wrote:
>>
>> Aren't comments like
>>
>> //
>> // Table header
>> //
>>
>> ,
>>
>> //
>> // Definition for ID mapping table shared by all node types //
>>
>> etc.  not allowed according to EDK II C Coding Standards Specification?
>>
>> 6.2.3 Avoid comments where the opening comment characters are alone on
>> a line.
>>
>> //
>>
>> // VIOLATION: Horror Vacui
>>
>> //
>>
>
> You must be joking
>
> $ git grep -E '/\*\*\s$' MdePkg/ MdeModulePkg/ |wc -l
> 16193
>
> IOW, there are more than 16000 occurrences of opening comment characters alone on a line in MdePkg+MdeModulePkg only
> IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.


  reply	other threads:[~2017-04-18 11:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-13 16:37 [PATCH] MdePkg/IndustryStandard: add definitions for ACPI 6.0 IORT Ard Biesheuvel
2017-04-18 10:07 ` Alexei Fedorov
2017-04-18 10:13   ` Ard Biesheuvel
2017-04-18 11:01     ` Alexei Fedorov
2017-04-18 11:11       ` Ard Biesheuvel [this message]
2017-04-18 17:56 ` Ard Biesheuvel
2017-04-18 20:54   ` Kinney, Michael D
2017-04-18 22:21     ` Ard Biesheuvel
2017-04-18 23:51       ` Kinney, Michael D
2017-04-19  7:03         ` Ard Biesheuvel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKv+Gu_3bvnT8syT8MyHqdMin+3Q4Oigs1wQbT+7V_cHNSedNA@mail.gmail.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox