This is an automated email from Gerrit. Chengyu Zheng ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/4102
-- gerrit commit edd79fa1ae5eae90d2a5f001115c12a8fbe16125 Author: Chengyu Zheng <[email protected]> Date: Sun Apr 9 18:55:02 2017 +0200 tools/scripts/checkpatch.pl: fix unescaped brace Change-Id: If1d0fbe95223351ea098504cf24f076784b26a9c Signed-off-by: Chengyu Zheng <[email protected]> diff --git a/tools/scripts/checkpatch.pl b/tools/scripts/checkpatch.pl index 92befc6..b977d36 100755 --- a/tools/scripts/checkpatch.pl +++ b/tools/scripts/checkpatch.pl @@ -2224,7 +2224,7 @@ sub process { # function brace can't be on same line, except for #defines of do while, # or if closed on same line - if (($line=~/$Type\s*$Ident\(.*\).*\s{/) and + if (($line=~/$Type\s*$Ident\(.*\).*\s\{/) and !($line=~/\#\s*define.*do\s\{/) and !($line=~/}/)) { ERROR("OPEN_BRACE", "open brace '{' following function declarations go on the next line\n" . $herecurr); -- ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
