From 63ae25c45d900f47483cf29ec3ceb7be56e8c202 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sun, 22 May 2022 00:29:44 +0200 Subject: 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 --- bin/grepc | 1 - share/man/man1/grepc.1 | 4 ++-- 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 -- cgit v1.2.3