contrib/checkpatch: allow empty lines within continuations

This chunk from nm-device.c is, in fact, okay:

               |<-tab->nm_assert (   !new_config
               |<-tab->           || (   new_config
               |<-tab->               && ({
               |<-tab->                    int ip_ifindex = ...
 empty line -> |
               |<-tab->                    (   ip_ifindex > 0
               |<-tab->                     && ip_ifindex == ...
               |<-tab->                  })));
This commit is contained in:
Lubomir Rintel 2019-06-25 10:54:42 +02:00
parent da312e6220
commit a5dd31afeb

View file

@ -206,7 +206,7 @@ if (defined $indent) {
or (defined $tabs_before_spaces and defined $this_tabs_before_spaces
and $this_tabs_before_spaces != $tabs_before_spaces);
}
$indent = $this_indent;
$indent = $this_indent if $_ ne '';
# Further on we process stuff without comments.
$_ = $line;