diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2012-01-30 13:15:08 +0000 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2012-02-06 10:47:44 +0000 |
commit | 2f6f7c442d24ba296dd9447e254e34b817fd02b4 (patch) | |
tree | bb066c2218d7ddd820ac9dc51b6fea53a8ac7aec | |
parent | b48d1f66378fac886d5bc32d7302da48c89d8a75 (diff) | |
download | riscv-openocd-2f6f7c442d24ba296dd9447e254e34b817fd02b4.zip riscv-openocd-2f6f7c442d24ba296dd9447e254e34b817fd02b4.tar.gz riscv-openocd-2f6f7c442d24ba296dd9447e254e34b817fd02b4.tar.bz2 |
checkpatch: remove typedef check
We may enable this again - but at the moment is causing extra issues
with reformatting the codebase.
Change-Id: Ic64310a20605a0ef3206caa15c8e6c8ee655bfda
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/413
Tested-by: jenkins
-rwxr-xr-x | tools/scripts/checkpatch.pl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/scripts/checkpatch.pl b/tools/scripts/checkpatch.pl index 50fffc1..cabfa67 100755 --- a/tools/scripts/checkpatch.pl +++ b/tools/scripts/checkpatch.pl @@ -2121,14 +2121,14 @@ sub process { # check for new typedefs, only function parameters and sparse annotations # make sense. - if ($line =~ /\btypedef\s/ && - $line !~ /\btypedef\s+$Type\s*\(\s*\*?$Ident\s*\)\s*\(/ && - $line !~ /\btypedef\s+$Type\s+$Ident\s*\(/ && - $line !~ /\b$typeTypedefs\b/ && - $line !~ /\b__bitwise(?:__|)\b/) { - WARN("NEW_TYPEDEFS", - "do not add new typedefs\n" . $herecurr); - } +# if ($line =~ /\btypedef\s/ && +# $line !~ /\btypedef\s+$Type\s*\(\s*\*?$Ident\s*\)\s*\(/ && +# $line !~ /\btypedef\s+$Type\s+$Ident\s*\(/ && +# $line !~ /\b$typeTypedefs\b/ && +# $line !~ /\b__bitwise(?:__|)\b/) { +# WARN("NEW_TYPEDEFS", +# "do not add new typedefs\n" . $herecurr); +# } # * goes on variable not on type # (char*[ const]) |