diff options
author | Chengyu Zheng <chengyu.zheng@polimi.it> | 2017-04-09 18:55:02 +0200 |
---|---|---|
committer | Freddie Chopin <freddie.chopin@gmail.com> | 2017-04-23 21:25:02 +0100 |
commit | 6e8217784bfe4027a753f75a2c0fe732bfd8d2e0 (patch) | |
tree | ff96118619ecaf2bc496f7e049ad1d2fda032567 /tools | |
parent | d7d7d8bd409124a39a961579e818e658697991c1 (diff) |
tools/scripts/checkpatch.pl: fix unescaped brace
Change-Id: If1d0fbe95223351ea098504cf24f076784b26a9c
Signed-off-by: Chengyu Zheng <chengyu.zheng@polimi.it>
Reviewed-on: http://openocd.zylin.com/4102
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/scripts/checkpatch.pl b/tools/scripts/checkpatch.pl index 92befc6f..b977d361 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); |