Allow documentation comments to begin with A/An.

This aligns with Go style.

Change-Id: I773c6a2e8ddd8d40a8480efae86736c4b338d203
Reviewed-on: https://boringssl-review.googlesource.com/7958
Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
David Benjamin 2016-05-17 17:31:53 -04:00 committed by Adam Langley
parent c7eae5a326
commit 47f5a1feca

View File

@ -409,6 +409,8 @@ func (config *Config) parseHeader(path string) (*HeaderFile, error) {
// detected by starting with “The” or “These”.
if len(comment) > 0 &&
!strings.HasPrefix(comment[0], name) &&
!strings.HasPrefix(comment[0], "A " + name) &&
!strings.HasPrefix(comment[0], "An " + name) &&
!strings.HasPrefix(decl, "#define ") &&
!strings.HasPrefix(comment[0], "The ") &&
!strings.HasPrefix(comment[0], "These ") {