From 8453a840f0761a3179f09e7ffadcdc6dc310d42a Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Fri, 11 Aug 2017 19:13:17 +1200 Subject: [PATCH] Report missing space between ) and { --- xapian-maintainer-tools/xapian-check-patch | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xapian-maintainer-tools/xapian-check-patch b/xapian-maintainer-tools/xapian-check-patch index d2c639954..845589e2c 100755 --- a/xapian-maintainer-tools/xapian-check-patch +++ b/xapian-maintainer-tools/xapian-check-patch @@ -369,6 +369,9 @@ QUOTELOOP: while (1) { if (m!^\+(?:.*[;{])?\s*/[/*]{1,2}\w!) { diagnostic('error', "added/changed line has comment without whitespace before the text", $fullline); } + if (m!^\+.*?\)\{!) { + diagnostic('error', "No space between ')' and '{'", $fullline); + } if ($fnm !~ m!/(?:md5|posixy_wrapper|perftest)\.cc$! && m,^\+.*[^\w\.>]([a-z][a-z0-9]*[A-Z]\w*),) { my $symbol = $1; -- 2.11.4.GIT