summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-05-22 00:29:44 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-05-22 00:29:47 +0200
commit63ae25c45d900f47483cf29ec3ceb7be56e8c202 (patch)
treefdaa8960173097ec6e9f3d86ab2a0f9b39e6efa1
parente3e43645b2333c8f3bc4297c0e6ce5b491641823 (diff)
grepc, grepc.1: Remove -tu from the defaults
Normally, one either wants to see a declaration/definition, or its uses, but not both at the same time. Also, there are usually many more use sites than than definitions, and therefore definitions are shadowed between all the noise. Restrict the default to declarations and definitions, which in my experience seems to be the most common use case. Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rwxr-xr-xbin/grepc1
-rw-r--r--share/man/man1/grepc.14
2 files changed, 2 insertions, 3 deletions
diff --git a/bin/grepc b/bin/grepc
index 7b7aa61..7bfbadf 100755
--- a/bin/grepc
+++ b/bin/grepc
@@ -428,7 +428,6 @@ grepc_search_default()
grepc_func "$1";
grepc_macro "$1";
grepc_type "$1";
- grepc_use "$1";
}
diff --git a/share/man/man1/grepc.1 b/share/man/man1/grepc.1
index e2d2279..9508f68 100644
--- a/share/man/man1/grepc.1
+++ b/share/man/man1/grepc.1
@@ -8,7 +8,7 @@ grepc \- find C declarations, definitions, and uses in source code
.RI [ file\~ .\|.\|.]
.SH DESCRIPTION
.MR grepc 1
-searches for C declarations, definitions, and uses of
+searches for C declarations, definitions, and/or uses of
.I pattern
in each
.IR file .
@@ -132,7 +132,7 @@ of code (see Types of code under DESCRIPTION).
This option can be passed multiple times
to search for various types of code.
Default:
-.BR "e f m t u" .
+.BR "e f m t" .
.TP
.BI \-x " extension"
Restrict the search to files ending with