We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db5358b commit fbd3f84Copy full SHA for fbd3f84
checkpatch.pl
@@ -4655,6 +4655,8 @@ sub process {
4655
# ignore tests
4656
} elsif ($realfile =~ /\bbox\.h$/ && $line =~ /^\+\s*(?:$Declare)?\s*box_set_/) {
4657
# ignore box_set_XXX in box.h
4658
+ } elsif ($line =~ /\boperator\s*()/) {
4659
+ # operator() is used as a callback so a comment isn't necessary
4660
} elsif ($line =~ /^\+\s*(?:$Declare)?\s*(?:generic_|disabled_|exhausted_)/) {
4661
# generic_XXX, disabled_XXX, exhausted_XXX are functions are stubs so comments are not required
4662
} elsif ($line =~ /^\+\s*($Declare)?\s*(?:($Ident)\s*\(|\(\s*\*\s*($Ident)\s*\)\s*\(|($Ident)\s*;)/) {
0 commit comments