checkpatch: catch "gs_free GError *" declations
(cherry picked from commit ec0adbfaf0
)
This commit is contained in:
@@ -189,6 +189,7 @@ complain ("Don't add Emacs editor formatting hints to source files") if $line_no
|
|||||||
complain ("XXX marker are reserved for development while work-in-progress. Use TODO or FIXME comment instead?") if $line =~ /\bXXX\b/;
|
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) *\) *(:|\()/;
|
complain ("This gtk-doc annotation looks wrong") if $line =~ /\*.*\( *(transfer-(none|container|full)|allow none) *\) *(:|\()/;
|
||||||
complain ("Prefer nm_assert() or g_return*() to g_assert*()") if $line =~ /g_assert/ and not $filename =~ /\/tests\//;
|
complain ("Prefer nm_assert() or g_return*() to g_assert*()") if $line =~ /g_assert/ and not $filename =~ /\/tests\//;
|
||||||
|
complain ("Use gs_free_error with GError variables") if $line =~ /\bgs_free\b +GError *\*/;
|
||||||
|
|
||||||
new_hunk if $_ eq '';
|
new_hunk if $_ eq '';
|
||||||
my ($this_indent) = /^(\s*)/;
|
my ($this_indent) = /^(\s*)/;
|
||||||
|
Reference in New Issue
Block a user