On 12/14/2018 04:15 PM, Paolo Bonzini wrote:
On 14/12/18 19:06, Wainer dos Santos Moschetta wrote:
IIUC above block handles the lines between lead and trail. So it would
fix (but it doesn't) this:
# cat foo
/*
comment 1
comment 2
*/
# scripts/fix-multiline-comments.sh foo
/*
comment
On 14/12/18 19:06, Wainer dos Santos Moschetta wrote:
>
> IIUC above block handles the lines between lead and trail. So it would
> fix (but it doesn't) this:
>
> # cat foo
> /*
> comment 1
> comment 2
> */
>
> # scripts/fix-multiline-comments.sh foo
> /*
> comment 1
> comment 2
> */
Not
On 12/14/2018 07:48 AM, Paolo Bonzini wrote:
Since we're adding checkpatch rules to enforce 4-line multiline comment
format, i.e. with lone /* and */, this script can be run on existing
code so that the comment style does not become inconsistent within a
file.
The alternative to
Since we're adding checkpatch rules to enforce 4-line multiline comment
format, i.e. with lone /* and */, this script can be run on existing
code so that the comment style does not become inconsistent within a
file.
The alternative to awk-in-a-shell-script could be Perl, which also
supports -i