* [Cocci] main changes in 1.0.0-rc22
@ 2014-09-30 10:31 Julia Lawall
2014-09-30 11:36 ` [Cocci] Further ideas from the release "1.0.0-rc22" SF Markus Elfring
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: Julia Lawall @ 2014-09-30 10:31 UTC (permalink / raw)
To: cocci
Options:
The option --include-headers-for-types has been added. With this, you can
use eg --all-includes and it will parse the header files to collect type
information, but not try to do any subsequent matching or transformation
in the header files. If you need type information, but don't anticipate
that any matching or transformation is needed that crosses the boundary
between the header files and the .c file, then using this option can give
a big performance improvement.
--keep-comments: This option existed before, but did not work properly.
With this option, all comments will be kept. Without this option, when a
block of code is specified to be removed in a semantic patch, then
comments within the code matched by the block will be removed.
--force-diff: This option existed before, but did not work properly.
With this option, a patch will be generated if there is any change in the
matched code. Without this option, no patch will be generated if the
change is only in whitespace.
--parse-handler: This new option makes it possible to give a file name
containing OCaml code to invoke on a parse error. It allows displaying
the parse error in a custom format.
Some other changes:
Various improvements in pretty printing.
Some improvements in the handling of PCRE regular expressions to avoid
strange crashes.
Some improvements in the handling of variable declarations that involve
multiple variables, when the types are complex (eg arrays).
The tools directory now contains an interactive tool named sgen, developed
by Chi Pham, for generating semantic patches in the form required by the
Linux kernel. That is, it adds the required headers, virtual rules, and
rule variants. There is a makefile in tools/sgen, and documentation in
tools/sgen/documentation. Basic usage is, for the semantic patch
foo.cocci:
sgen foo.cocci
I hope that this will make it easier to submit semantic patches for
integration into the Linux kernel.
julia
^ permalink raw reply [flat|nested] 12+ messages in thread* [Cocci] Further ideas from the release "1.0.0-rc22"
2014-09-30 10:31 [Cocci] main changes in 1.0.0-rc22 Julia Lawall
@ 2014-09-30 11:36 ` SF Markus Elfring
2014-09-30 11:57 ` Julia Lawall
2014-09-30 19:03 ` [Cocci] main changes in 1.0.0-rc22 SF Markus Elfring
2014-10-01 18:01 ` SF Markus Elfring
2 siblings, 1 reply; 12+ messages in thread
From: SF Markus Elfring @ 2014-09-30 11:36 UTC (permalink / raw)
To: cocci
I thank you very much for your software improvements.
> If you need type information, but don't anticipate that any matching
> or transformation is needed that crosses the boundary between the header files
> and the .c file, then using this option can give a big performance improvement.
Would anybody like to publish any run time statistics for comparison of effects
from the added parameter "include-headers-for-types"?
> --parse-handler: This new option makes it possible to give a file name
> containing OCaml code to invoke on a parse error. It allows displaying
> the parse error in a custom format.
Can other programming languages be eventually also reused here for special error
reporting?
> Some improvements in the handling of PCRE regular expressions to avoid
> strange crashes.
I like this software correction. I have tried it out with my big regular
expression in a SmPL constraint for a patch approach on current Linux source
files a moment ago.
> The tools directory now contains an interactive tool named sgen, developed
> by Chi Pham, for generating semantic patches in the form required by the
> Linux kernel.
Should I rewrite the approach "Deletion of unnecessary checks before specific
function calls" which I posted to Linux mailing lists on 2014-03-05 according to
this interface?
I would like to clarify another implementation detail because of more surprising
error messages:
?
kpathsea: Running mktextfm ptmr8t
/usr/share/texmf/web2c/mktexnam: Could not map source abbreviation for ptmr8t.
/usr/share/texmf/web2c/mktexnam: Need to update ?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode;
input ptmr8t
This is METAFONT, Version 2.718281 (TeX Live 2013/TeX Live for SUSE Linux)
kpathsea: Running mktexmf ptmr8t
! I can't find file `ptmr8t'.
<*> ...:=ljfour; mag:=1; nonstopmode; input ptmr8t
Please type another input file name
! Emergency stop.
<*> ...:=ljfour; mag:=1; nonstopmode; input ptmr8t
Transcript written on mfput.log.
grep: ptmr8t.log: Datei oder Verzeichnis nicht gefunden
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input
ptmr8t' failed to make ptmr8t.tfm.
kpathsea: Appending font creation commands to missfont.log.
! Font T1/ptm/m/n/10=ptmr8t at 10.0pt not loadable: Metric (TFM) file not found
.
<to be read again>
relax
l.85 \begin{document}
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on manual.log.
?
Which software package should provide the needed font files for the
documentation generation process?
Regards,
Markus
^ permalink raw reply [flat|nested] 12+ messages in thread* [Cocci] Further ideas from the release "1.0.0-rc22"
2014-09-30 11:36 ` [Cocci] Further ideas from the release "1.0.0-rc22" SF Markus Elfring
@ 2014-09-30 11:57 ` Julia Lawall
2014-09-30 12:12 ` [Cocci] Documentation generation for " SF Markus Elfring
0 siblings, 1 reply; 12+ messages in thread
From: Julia Lawall @ 2014-09-30 11:57 UTC (permalink / raw)
To: cocci
> > --parse-handler: This new option makes it possible to give a file name
> > containing OCaml code to invoke on a parse error. It allows displaying
> > the parse error in a custom format.
>
> Can other programming languages be eventually also reused here for special error
> reporting?
Not currently.
> I would like to clarify another implementation detail because of more surprising
> error messages:
> ?
> kpathsea: Running mktextfm ptmr8t
> /usr/share/texmf/web2c/mktexnam: Could not map source abbreviation for ptmr8t.
> /usr/share/texmf/web2c/mktexnam: Need to update ?
> mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode;
> input ptmr8t
> This is METAFONT, Version 2.718281 (TeX Live 2013/TeX Live for SUSE Linux)
>
>
> kpathsea: Running mktexmf ptmr8t
> ! I can't find file `ptmr8t'.
> <*> ...:=ljfour; mag:=1; nonstopmode; input ptmr8t
>
> Please type another input file name
> ! Emergency stop.
> <*> ...:=ljfour; mag:=1; nonstopmode; input ptmr8t
>
> Transcript written on mfput.log.
> grep: ptmr8t.log: Datei oder Verzeichnis nicht gefunden
> mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input
> ptmr8t' failed to make ptmr8t.tfm.
> kpathsea: Appending font creation commands to missfont.log.
>
> ! Font T1/ptm/m/n/10=ptmr8t at 10.0pt not loadable: Metric (TFM) file not found
> .
> <to be read again>
> relax
> l.85 \begin{document}
>
> ! ==> Fatal error occurred, no output PDF file produced!
> Transcript written on manual.log.
> ?
>
> Which software package should provide the needed font files for the
> documentation generation process?
I don't know about the installation of latex on Suse. Perhaps google for
the error and see what comes up.
julia
^ permalink raw reply [flat|nested] 12+ messages in thread* [Cocci] Documentation generation for the release "1.0.0-rc22"
2014-09-30 11:57 ` Julia Lawall
@ 2014-09-30 12:12 ` SF Markus Elfring
2014-09-30 12:16 ` Julia Lawall
2014-09-30 12:24 ` Wolfram Sang
0 siblings, 2 replies; 12+ messages in thread
From: SF Markus Elfring @ 2014-09-30 12:12 UTC (permalink / raw)
To: cocci
> I don't know about the installation of latex on Suse.
Which software package does provide the needed font file "ptmr8t" for your
software development system?
I have searched a bit in a few archives. Would you like to suggest any special
installation source so that I can also regenerate the corresponding
documentation for your software release here?
Regards,
Markus
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Cocci] main changes in 1.0.0-rc22
2014-09-30 10:31 [Cocci] main changes in 1.0.0-rc22 Julia Lawall
2014-09-30 11:36 ` [Cocci] Further ideas from the release "1.0.0-rc22" SF Markus Elfring
@ 2014-09-30 19:03 ` SF Markus Elfring
2014-09-30 20:31 ` Julia Lawall
2014-10-01 18:01 ` SF Markus Elfring
2 siblings, 1 reply; 12+ messages in thread
From: SF Markus Elfring @ 2014-09-30 19:03 UTC (permalink / raw)
To: cocci
> The option --include-headers-for-types has been added. With this, you can
> use eg --all-includes and it will parse the header files to collect type
> information, but not try to do any subsequent matching or transformation
> in the header files.
Would you like to mention this parameter also in the documentation source file
"spatch_options.tex"?
Regards,
Markus
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Cocci] main changes in 1.0.0-rc22
2014-09-30 19:03 ` [Cocci] main changes in 1.0.0-rc22 SF Markus Elfring
@ 2014-09-30 20:31 ` Julia Lawall
0 siblings, 0 replies; 12+ messages in thread
From: Julia Lawall @ 2014-09-30 20:31 UTC (permalink / raw)
To: cocci
On Tue, 30 Sep 2014, SF Markus Elfring wrote:
> > The option --include-headers-for-types has been added. With this, you can
> > use eg --all-includes and it will parse the header files to collect type
> > information, but not try to do any subsequent matching or transformation
> > in the header files.
>
> Would you like to mention this parameter also in the documentation source file
> "spatch_options.tex"?
Added. Thanks.
julia
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Cocci] main changes in 1.0.0-rc22
2014-09-30 10:31 [Cocci] main changes in 1.0.0-rc22 Julia Lawall
2014-09-30 11:36 ` [Cocci] Further ideas from the release "1.0.0-rc22" SF Markus Elfring
2014-09-30 19:03 ` [Cocci] main changes in 1.0.0-rc22 SF Markus Elfring
@ 2014-10-01 18:01 ` SF Markus Elfring
2 siblings, 0 replies; 12+ messages in thread
From: SF Markus Elfring @ 2014-10-01 18:01 UTC (permalink / raw)
To: cocci
> --parse-handler: This new option makes it possible to give a file name
> containing OCaml code to invoke on a parse error. It allows displaying
> the parse error in a custom format.
Would you like to mention this parameter also in the documentation source file
"spatch_options.tex"?
https://github.com/coccinelle/coccinelle/blob/9c0c494202d06b2687b6e3ef00df42e7abce5632/docs/manual/spatch_options.tex#L57
Regards,
Markus
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2014-10-01 18:01 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-30 10:31 [Cocci] main changes in 1.0.0-rc22 Julia Lawall
2014-09-30 11:36 ` [Cocci] Further ideas from the release "1.0.0-rc22" SF Markus Elfring
2014-09-30 11:57 ` Julia Lawall
2014-09-30 12:12 ` [Cocci] Documentation generation for " SF Markus Elfring
2014-09-30 12:16 ` Julia Lawall
2014-09-30 13:00 ` SF Markus Elfring
2014-09-30 12:24 ` Wolfram Sang
2014-09-30 17:45 ` SF Markus Elfring
2014-09-30 18:37 ` Wolfram Sang
2014-09-30 19:03 ` [Cocci] main changes in 1.0.0-rc22 SF Markus Elfring
2014-09-30 20:31 ` Julia Lawall
2014-10-01 18:01 ` SF Markus Elfring
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.