diff options
| author | Thomas Haller <thaller@redhat.com> | 2018-12-29 16:03:41 +0100 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2018-12-30 15:17:11 +0100 |
| commit | fc052494d1d76d7b3a39f0ba358666e5d3aeef05 (patch) | |
| tree | ee84df9544702d0113275826dd88fa2e8f9ea189 /contrib | |
| parent | b54d695e98a59b053cb729a1db660a03a950a911 (diff) | |
| download | NetworkManager-fc052494d1d76d7b3a39f0ba358666e5d3aeef05.tar.gz | |
checkpatch: warn about suspicious gtk-doc annotations
It's
(allow-none):
and
(transfer none):
That's confusing enough. Add a check.
Diffstat (limited to 'contrib')
| -rwxr-xr-x | contrib/scripts/checkpatch.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/scripts/checkpatch.pl b/contrib/scripts/checkpatch.pl index 2ac931c2bc..d0b59b5f22 100755 --- a/contrib/scripts/checkpatch.pl +++ b/contrib/scripts/checkpatch.pl @@ -142,6 +142,7 @@ complain ("Please use LGPL2+ for new files") if $is_patch and $line =~ /under th complain ("Don't use space inside elvis operator ?:") if $line =~ /\?[\t ]+:/; complain ("Don't add Emacs editor formatting hints to source files") if $line_no == 1 and $line =~ /-\*-.+-\*-/; complain ("XXX marker are reserved for development while work-in-progress. Use TODO or FIXME comment instead?") if $line =~ /\bXXX\b/; +complain ("This gtk-doc annotation looks wrong") if $line =~ /\*.*\( *(transfer-(none|container|full)|allow none) *\) *(:|\()/; new_hunk if $_ eq ''; my ($this_indent) = /^(\s*)/; |
