Coccinelle archive on lore.kernel.org
 help / color / Atom feed
* [Cocci] Improve parsing for “sha1dc/sha1.c”
@ 2019-11-19  7:55 Markus Elfring
  0 siblings, 0 replies; only message in thread
From: Markus Elfring @ 2019-11-19  7:55 UTC (permalink / raw)
  To: Coccinelle

Hello,

I have tried the following command out with the software combination
“Coccinelle 1.0.8-00004-g842075f7”.

elfring@Sonne:~/Projekte/git/lokal> spatch --parse-c sha1dc/sha1.c
…
bad: #ifdef DOSTORESTATE5
TYPEDEF:_handle_typedef=false. Not normal if don't come from exn
ERROR-RECOV: found sync col 0 at line 806
parsing pass2: try again
TYPEDEF:_handle_typedef=false. Not normal if don't come from exn
ERROR-RECOV: found sync col 0 at line 806
parsing pass3: try again
TYPEDEF:_handle_typedef=false. Not normal if don't come from exn
ERROR-RECOV: found sync col 0 at line 806
parse error
 = File "sha1dc/sha1.c", line 1000, column 16, charpos = 40489
  around = '5',
  whole content = SHA1_RECOMPRESS(5)
badcount: 4
…


The run time characteristics are also undesirable at this place.
https://github.com/git/git/blob/4125f78222749cb8fc91115abec3ac83e5dfb194/sha1dc/sha1.c#L390

Will it matter to improve the shown parsing results any further?

Regards,
Markus
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-19  7:55 [Cocci] Improve parsing for “sha1dc/sha1.c” Markus Elfring

Coccinelle archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/cocci/0 cocci/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 cocci cocci/ https://lore.kernel.org/cocci \
		cocci@systeme.lip6.fr
	public-inbox-index cocci

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/fr.lip6.systeme.cocci


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git