scripts: reduced false positives given by 'comments.pl'. given when declaring operator=

This commit is contained in:
Daniel Marjamäki 2011-01-06 12:42:02 +01:00
parent ca294544ca
commit f838f89d01
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ sub checkfile
# missing comment before variable declaration? # missing comment before variable declaration?
if (($comment == 0) && if (($comment == 0) &&
($line =~ /^\s+([a-z]+)? [a-z]+(\s)+[a-z][a-z0-9]*\s*[;=]/) && ($line =~ /^\s+([a-z]+)? [a-z]+(\s)+[a-z][a-z0-9]*\s*[;=]/) &&
(!($line =~ /return|delete/))) (!($line =~ /return|delete|operator/)))
{ {
print "[$filename:$linenr] No comment before variable declaration\n"; print "[$filename:$linenr] No comment before variable declaration\n";
} }