Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1292659
| From | Joe Perches <joe@perches.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [BUG] checkpatch: unescaped left brace in regex is deprecated |
| Date | 2015-12-16 01:20 +0100 |
| Message-ID | <qG7Z0-2VN-7@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <qDd4V-2KY-79@gated-at.bofh.it> <qDdxT-2Vw-7@gated-at.bofh.it> <qE7A5-5xe-3@gated-at.bofh.it> <qE7A5-5xe-1@gated-at.bofh.it> <qG7FF-2zx-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, 2015-12-15 at 20:58 -0300, Geyslan G. Bem wrote:
> 2015-12-10 8:24 GMT-03:00 Geyslan G. Bem <geyslan@gmail.com>:
> > Suggested-by: Peter Senna Tschudin <peter.senna@gmail.com>
> > Reported-by: Geyslan G. Bem <geyslan@gmail.com>
> >
>
> Joe, do you applied this patch? If not, would I send it?
You can resend, but I believe there are a few more instances
of this that might need fixing too.
I don't have perl 5.22 so it's difficult for me to test.
Here's a grep with some possible false positives
and maybe missing some too.
$ git grep -n "=[\!~].*{" scripts/checkpatch.pl|grep -vw qr|grep -vP '{$|{\s*#|\${|\\{|{[\d$]'
scripts/checkpatch.pl:1143: $remainder =~ /^(else)(?:\s|{)/ &&
scripts/checkpatch.pl:1233: $stmt =~ s/^\s*{//;
scripts/checkpatch.pl:2458: if ($file =~ m{^(.*?)(?::\d+)+:?$} &&
scripts/checkpatch.pl:2802: if ($line =~ /^\+(.*)\(\s*$Type\s*\)([ \t]++)((?![={]|\\$|$Attribute|__attribute__))/ &&
scripts/checkpatch.pl:3015: $s =~ s/{.*$//s;
scripts/checkpatch.pl:3168: $s =~ s/^\s*{//;
scripts/checkpatch.pl:3274: if ($line =~ /^.\s*{/ &&
scripts/checkpatch.pl:3282: $fixedline =~ s/\s*=\s*$/ = {/;
scripts/checkpatch.pl:3285: $fixedline =~ s/^(.\s*){\s*/$1/;
scripts/checkpatch.pl:3606: if (($line=~/$Type\s*$Ident\(.*\).*\s*{/) and
scripts/checkpatch.pl:3613: $fixed_line =~ /(^..*$Type\s*$Ident\(.*\)\s*){(.*)$/;
scripts/checkpatch.pl:3625: if ($line =~ /^.\s*{/ &&
scripts/checkpatch.pl:3635: $fixedline =~ s/^(.\s*){\s*/$1\t/;
scripts/checkpatch.pl:4104:## if ($line =~ /^.\s*$Type\s+$Ident(?:\s*=[^,{]*)?\s*,\s*$Ident.*/ &&
scripts/checkpatch.pl:4124: $fixed[$fixlinenr] =~ s/^(\+.*(?:do|\))){/$1 {/;
scripts/checkpatch.pl:4734: $seen++ if ($block =~ /^\s*{/);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [BUG] checkpatch: unescaped left brace in regex is deprecated "Geyslan G. Bem" <geyslan@gmail.com> - 2015-12-16 01:00 +0100
Re: [BUG] checkpatch: unescaped left brace in regex is deprecated Joe Perches <joe@perches.com> - 2015-12-16 01:20 +0100
Re: [BUG] checkpatch: unescaped left brace in regex is deprecated "Geyslan G. Bem" <geyslan@gmail.com> - 2015-12-16 12:30 +0100
Re: [BUG] checkpatch: unescaped left brace in regex is deprecated "Geyslan G. Bem" <geyslan@gmail.com> - 2015-12-30 17:00 +0100
csiph-web