summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-05-20 04:00:04 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-05-20 04:00:04 +0200
commite3e43645b2333c8f3bc4297c0e6ce5b491641823 (patch)
tree6218c246fa895fb8c7f6eda243ba10e1e5c2d57f /share
parent52fe165923565b402e1ac7ffb52a134c294a1c8f (diff)
grepc, grepc.1: -tu: Allow searching special characters
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'share')
-rw-r--r--share/man/man1/grepc.122
1 files changed, 15 insertions, 7 deletions
diff --git a/share/man/man1/grepc.1 b/share/man/man1/grepc.1
index b23e5d9..e2d2279 100644
--- a/share/man/man1/grepc.1
+++ b/share/man/man1/grepc.1
@@ -4,19 +4,19 @@ grepc \- find C declarations, definitions, and uses in source code
.SH SYNOPSIS
.B grepc
.RI [ option\~ .\|.\|.\&]
-.I identifier
+.I pattern
.RI [ file\~ .\|.\|.]
.SH DESCRIPTION
.MR grepc 1
searches for C declarations, definitions, and uses of
-.I identifier
+.I pattern
in each
.IR file .
.PP
-.I identifier
-is normally a C identifier,
-but it is actually a PCRE pattern,
-so it can be used to find complex patterns.
+.I pattern
+is a PCRE pattern.
+It normally represents a C identifier,
+and word boundaries are implicitly added to it in most cases.
.PP
If
.I file
@@ -75,12 +75,20 @@ Type definitions.
.B u
Uses.
Searches occurences of
-.BI \eb identifier \eb
+.I pattern
within enums,
function bodies,
macro replacements,
and type definitions,
and prints the whole enum, function, macro, and/or type definitions.
+In this case there are no word boundaries set by default,
+so if
+.I pattern
+is
+.BR open ,
+.B fopen
+will also be found;
+that's to allow searching for patterns containing any sequence of characters.
.IP
This can be further subdivided into:
.RS