|
NAMEcoccigrep - semantic grep for the C programming languageSYNOPSIScoccigrep [OPTIONS] -t TYPE [FILE...]DESCRIPTIONcoccigrep is a semantic grep for the C programming language. It is based on coccinelle and can be used to find where a given structure is used in C source files. coccigrep depends on the spatch program which comes with coccinelle.OPTIONSDisplay options
Search options
deref
Any access to an ATTRIBUTE.
func
Any function call for which one of the parameters is of
type TYPE (as defined with -t). In this operation, the option
-a sets the name of the function to match and does not refer to an
attribute.
set
Any operation wich changes the value of an
ATTRIBUTE.
test
Any boolean test where an ATTRIBUTE appears.
used
Any statement where the type TYPE (as defined with
-t) appears. This OPERATION does not need to look for an
ATTRIBUTE thus it ignores option -a.
The default operation is used if -a is not given, or deref if it is. Depending on your environment, more OPERATIONs may be available. See option -L for information about OPERATION listing.
Editor options
Program information
Other options
BUGSThe operation option could lead to some missed match because the semantic patches used internally may need some improvements. Use options -L together with -v to get detailed information about available operations.Please report issues to <https://github.com/regit/coccigrep/issues>. All ideas are welcome. EXAMPLES1. Find where in a set of files the structure Packet is used: $ coccigrep -t Packet *c FILES~/.coccigrep Configuration file for coccigrep.SEE ALSOspatch(1)Project homepage: <http://home.regit.org/software/coccigrep/>
Visit the GSP FreeBSD Man Page Interface. |