* [PATCH] Coccinelle: use false positive annotation
@ 2017-10-28 23:43 Julia Lawall
2017-10-30 3:47 ` Masahiro Yamada
0 siblings, 1 reply; 5+ messages in thread
From: Julia Lawall @ 2017-10-28 23:43 UTC (permalink / raw)
To: Julia Lawall, Fengguang Wu, Rafael J . Wysocki, Masahiro Yamada
Cc: kernel-janitors, Gilles Muller, Nicolas Palix, Michal Marek,
cocci, linux-kernel
/// is to describe the semantic patch, while //# indicates reasons
for false positives.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
scripts/coccinelle/misc/ifcol.cocci | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/coccinelle/misc/ifcol.cocci b/scripts/coccinelle/misc/ifcol.cocci
index d0d00ef..30b248b 100644
--- a/scripts/coccinelle/misc/ifcol.cocci
+++ b/scripts/coccinelle/misc/ifcol.cocci
@@ -3,9 +3,9 @@
/// Sometimes, code after an if that is indented is actually intended to be
/// part of the if branch.
///
-/// This has a high rate of false positives, because Coccinelle's column
-/// calculation does not distinguish between spaces and tabs, so code that
-/// is not visually aligned may be considered to be in the same column.
+//# This has a high rate of false positives, because Coccinelle's column
+//# calculation does not distinguish between spaces and tabs, so code that
+//# is not visually aligned may be considered to be in the same column.
///
// Confidence: Low
// Copyright: (C) 2010 Nicolas Palix, DIKU. GPLv2.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Coccinelle: use false positive annotation
2017-10-28 23:43 [PATCH] Coccinelle: use false positive annotation Julia Lawall
@ 2017-10-30 3:47 ` Masahiro Yamada
2017-10-30 3:52 ` Julia Lawall
0 siblings, 1 reply; 5+ messages in thread
From: Masahiro Yamada @ 2017-10-30 3:47 UTC (permalink / raw)
To: Julia Lawall
Cc: Fengguang Wu, Rafael J . Wysocki, kernel-janitors, Gilles Muller,
Nicolas Palix, Michal Marek, cocci, Linux Kernel Mailing List
Hi Julia,
2017-10-29 8:43 GMT+09:00 Julia Lawall <Julia.Lawall@lip6.fr>:
> /// is to describe the semantic patch, while //# indicates reasons
> for false positives.
>
> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
>
> ---
> scripts/coccinelle/misc/ifcol.cocci | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/scripts/coccinelle/misc/ifcol.cocci b/scripts/coccinelle/misc/ifcol.cocci
> index d0d00ef..30b248b 100644
> --- a/scripts/coccinelle/misc/ifcol.cocci
> +++ b/scripts/coccinelle/misc/ifcol.cocci
> @@ -3,9 +3,9 @@
> /// Sometimes, code after an if that is indented is actually intended to be
> /// part of the if branch.
> ///
> -/// This has a high rate of false positives, because Coccinelle's column
> -/// calculation does not distinguish between spaces and tabs, so code that
> -/// is not visually aligned may be considered to be in the same column.
> +//# This has a high rate of false positives, because Coccinelle's column
> +//# calculation does not distinguish between spaces and tabs, so code that
> +//# is not visually aligned may be considered to be in the same column.
> ///
Just a nit.
The last /// should be turned into //
if you want to avoid two blank lines in a series
after the semantic patch information.
(I can fix it locally if you agree with it and I am supposed to pick up this.)
> // Confidence: Low
> // Copyright: (C) 2010 Nicolas Palix, DIKU. GPLv2.
>
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Coccinelle: use false positive annotation
2017-10-30 3:47 ` Masahiro Yamada
@ 2017-10-30 3:52 ` Julia Lawall
2017-11-07 0:32 ` Masahiro Yamada
0 siblings, 1 reply; 5+ messages in thread
From: Julia Lawall @ 2017-10-30 3:52 UTC (permalink / raw)
To: Masahiro Yamada
Cc: Fengguang Wu, Rafael J . Wysocki, kernel-janitors, Gilles Muller,
Nicolas Palix, Michal Marek, cocci, Linux Kernel Mailing List
On Mon, 30 Oct 2017, Masahiro Yamada wrote:
> Hi Julia,
>
>
> 2017-10-29 8:43 GMT+09:00 Julia Lawall <Julia.Lawall@lip6.fr>:
> > /// is to describe the semantic patch, while //# indicates reasons
> > for false positives.
> >
> > Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
> >
> > ---
> > scripts/coccinelle/misc/ifcol.cocci | 6 +++---
> > 1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/scripts/coccinelle/misc/ifcol.cocci b/scripts/coccinelle/misc/ifcol.cocci
> > index d0d00ef..30b248b 100644
> > --- a/scripts/coccinelle/misc/ifcol.cocci
> > +++ b/scripts/coccinelle/misc/ifcol.cocci
> > @@ -3,9 +3,9 @@
> > /// Sometimes, code after an if that is indented is actually intended to be
> > /// part of the if branch.
> > ///
> > -/// This has a high rate of false positives, because Coccinelle's column
> > -/// calculation does not distinguish between spaces and tabs, so code that
> > -/// is not visually aligned may be considered to be in the same column.
> > +//# This has a high rate of false positives, because Coccinelle's column
> > +//# calculation does not distinguish between spaces and tabs, so code that
> > +//# is not visually aligned may be considered to be in the same column.
> > ///
>
> Just a nit.
>
> The last /// should be turned into //
> if you want to avoid two blank lines in a series
> after the semantic patch information.
>
> (I can fix it locally if you agree with it and I am supposed to pick up this.)
Thanks for detecting the problem. It would be great if you could pick it
up, since I haven't heard confirmation from Michal that he will start this
again. The change seems fine. Thanks for your help.
julia
>
>
>
> > // Confidence: Low
> > // Copyright: (C) 2010 Nicolas Palix, DIKU. GPLv2.
> >
>
>
>
> --
> Best Regards
> Masahiro Yamada
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Coccinelle: use false positive annotation
2017-10-30 3:52 ` Julia Lawall
@ 2017-11-07 0:32 ` Masahiro Yamada
2017-11-08 13:03 ` Julia Lawall
0 siblings, 1 reply; 5+ messages in thread
From: Masahiro Yamada @ 2017-11-07 0:32 UTC (permalink / raw)
To: Julia Lawall
Cc: Fengguang Wu, Rafael J . Wysocki, kernel-janitors, Gilles Muller,
Nicolas Palix, Michal Marek, cocci, Linux Kernel Mailing List
2017-10-30 12:52 GMT+09:00 Julia Lawall <julia.lawall@lip6.fr>:
>
>
> On Mon, 30 Oct 2017, Masahiro Yamada wrote:
>
>> Hi Julia,
>>
>>
>> 2017-10-29 8:43 GMT+09:00 Julia Lawall <Julia.Lawall@lip6.fr>:
>> > /// is to describe the semantic patch, while //# indicates reasons
>> > for false positives.
>> >
>> > Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
>> >
>> > ---
>> > scripts/coccinelle/misc/ifcol.cocci | 6 +++---
>> > 1 file changed, 3 insertions(+), 3 deletions(-)
>> >
>> > diff --git a/scripts/coccinelle/misc/ifcol.cocci b/scripts/coccinelle/misc/ifcol.cocci
>> > index d0d00ef..30b248b 100644
>> > --- a/scripts/coccinelle/misc/ifcol.cocci
>> > +++ b/scripts/coccinelle/misc/ifcol.cocci
>> > @@ -3,9 +3,9 @@
>> > /// Sometimes, code after an if that is indented is actually intended to be
>> > /// part of the if branch.
>> > ///
>> > -/// This has a high rate of false positives, because Coccinelle's column
>> > -/// calculation does not distinguish between spaces and tabs, so code that
>> > -/// is not visually aligned may be considered to be in the same column.
>> > +//# This has a high rate of false positives, because Coccinelle's column
>> > +//# calculation does not distinguish between spaces and tabs, so code that
>> > +//# is not visually aligned may be considered to be in the same column.
>> > ///
>>
>> Just a nit.
>>
>> The last /// should be turned into //
>> if you want to avoid two blank lines in a series
>> after the semantic patch information.
>>
>> (I can fix it locally if you agree with it and I am supposed to pick up this.)
>
> Thanks for detecting the problem. It would be great if you could pick it
> up, since I haven't heard confirmation from Michal that he will start this
> again. The change seems fine. Thanks for your help.
>
> julia
>
>>
Fix up the second ///
and applied to linux-kbuild/misc.
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Coccinelle: use false positive annotation
2017-11-07 0:32 ` Masahiro Yamada
@ 2017-11-08 13:03 ` Julia Lawall
0 siblings, 0 replies; 5+ messages in thread
From: Julia Lawall @ 2017-11-08 13:03 UTC (permalink / raw)
To: Masahiro Yamada
Cc: Julia Lawall, Fengguang Wu, Rafael J . Wysocki, kernel-janitors,
Gilles Muller, Nicolas Palix, Michal Marek, cocci,
Linux Kernel Mailing List
On Tue, 7 Nov 2017, Masahiro Yamada wrote:
> 2017-10-30 12:52 GMT+09:00 Julia Lawall <julia.lawall@lip6.fr>:
> >
> >
> > On Mon, 30 Oct 2017, Masahiro Yamada wrote:
> >
> >> Hi Julia,
> >>
> >>
> >> 2017-10-29 8:43 GMT+09:00 Julia Lawall <Julia.Lawall@lip6.fr>:
> >> > /// is to describe the semantic patch, while //# indicates reasons
> >> > for false positives.
> >> >
> >> > Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
> >> >
> >> > ---
> >> > scripts/coccinelle/misc/ifcol.cocci | 6 +++---
> >> > 1 file changed, 3 insertions(+), 3 deletions(-)
> >> >
> >> > diff --git a/scripts/coccinelle/misc/ifcol.cocci b/scripts/coccinelle/misc/ifcol.cocci
> >> > index d0d00ef..30b248b 100644
> >> > --- a/scripts/coccinelle/misc/ifcol.cocci
> >> > +++ b/scripts/coccinelle/misc/ifcol.cocci
> >> > @@ -3,9 +3,9 @@
> >> > /// Sometimes, code after an if that is indented is actually intended to be
> >> > /// part of the if branch.
> >> > ///
> >> > -/// This has a high rate of false positives, because Coccinelle's column
> >> > -/// calculation does not distinguish between spaces and tabs, so code that
> >> > -/// is not visually aligned may be considered to be in the same column.
> >> > +//# This has a high rate of false positives, because Coccinelle's column
> >> > +//# calculation does not distinguish between spaces and tabs, so code that
> >> > +//# is not visually aligned may be considered to be in the same column.
> >> > ///
> >>
> >> Just a nit.
> >>
> >> The last /// should be turned into //
> >> if you want to avoid two blank lines in a series
> >> after the semantic patch information.
> >>
> >> (I can fix it locally if you agree with it and I am supposed to pick up this.)
> >
> > Thanks for detecting the problem. It would be great if you could pick it
> > up, since I haven't heard confirmation from Michal that he will start this
> > again. The change seems fine. Thanks for your help.
> >
> > julia
> >
> >>
>
> Fix up the second ///
> and applied to linux-kbuild/misc.
Thanks!
julia
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-11-08 13:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-28 23:43 [PATCH] Coccinelle: use false positive annotation Julia Lawall
2017-10-30 3:47 ` Masahiro Yamada
2017-10-30 3:52 ` Julia Lawall
2017-11-07 0:32 ` Masahiro Yamada
2017-11-08 13:03 ` Julia Lawall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®