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
|
||||
# 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])
|
||||
|
|
Loading…
Reference in New Issue