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
This commit is contained in:
parent
b48d1f6637
commit
2f6f7c442d
|
@ -2121,14 +2121,14 @@ sub process {
|
||||||
|
|
||||||
# check for new typedefs, only function parameters and sparse annotations
|
# check for new typedefs, only function parameters and sparse annotations
|
||||||
# make sense.
|
# make sense.
|
||||||
if ($line =~ /\btypedef\s/ &&
|
# if ($line =~ /\btypedef\s/ &&
|
||||||
$line !~ /\btypedef\s+$Type\s*\(\s*\*?$Ident\s*\)\s*\(/ &&
|
# $line !~ /\btypedef\s+$Type\s*\(\s*\*?$Ident\s*\)\s*\(/ &&
|
||||||
$line !~ /\btypedef\s+$Type\s+$Ident\s*\(/ &&
|
# $line !~ /\btypedef\s+$Type\s+$Ident\s*\(/ &&
|
||||||
$line !~ /\b$typeTypedefs\b/ &&
|
# $line !~ /\b$typeTypedefs\b/ &&
|
||||||
$line !~ /\b__bitwise(?:__|)\b/) {
|
# $line !~ /\b__bitwise(?:__|)\b/) {
|
||||||
WARN("NEW_TYPEDEFS",
|
# WARN("NEW_TYPEDEFS",
|
||||||
"do not add new typedefs\n" . $herecurr);
|
# "do not add new typedefs\n" . $herecurr);
|
||||||
}
|
# }
|
||||||
|
|
||||||
# * goes on variable not on type
|
# * goes on variable not on type
|
||||||
# (char*[ const])
|
# (char*[ const])
|
||||||
|
|
Loading…
Reference in New Issue