From 383f5a1cb306a589c00d54b90407e1c0f9d526f7 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 18 Mar 2008 23:23:08 +0000 Subject: [PATCH] Add find_typedef comments for Linux. --- src/tools/find_typedef | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tools/find_typedef b/src/tools/find_typedef index 2a928c8d4a..de7688182e 100755 --- a/src/tools/find_typedef +++ b/src/tools/find_typedef @@ -39,7 +39,11 @@ for DIR do # if objdump -W is recognized, only one line of error should appear if [ `objdump -W 2>&1 | wc -l` -eq 1 ] then # Linux - # unfortunately the Linux version doesn't show unreferenced typedefs + # Unfortunately the Linux version doesn't show unreferenced typedefs. + # The problem is that they are still in the source code so should be + # indented properly. However, I think pgindent only cares about + # the typedef references, not the definitions, so I think it might + # be fine objdump -W "$DIR"/* | egrep -A3 '(DW_TAG_typedef|DW_TAG_structure_type|DW_TAG_union_type)' | awk ' $2 == "DW_AT_name" {print $NF}' -- 2.39.5