Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Apr 2012 04:46:05 GMT
From:      Jin Guojun <jguojun@sbcglobal.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/166570: ctags failed to generate tags properly
Message-ID:  <201204020446.q324k5LN048077@red.freebsd.org>
Resent-Message-ID: <201204020450.q324oCVO061299@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         166570
>Category:       bin
>Synopsis:       ctags failed to generate tags properly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 02 04:50:12 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Jin Guojun
>Release:        8.x-R
>Organization:
>Environment:
8.3-BETA1 FreeBSD 8.3-BETA1  #0: Wed Feb 29 12:44:48 PST 2012 root@bsd-ms.scenix.com:/usr/src/sys/i386/compile/MinMax  i386

8.2-RELEASE FreeBSD 8.2-RELEASE #0: Sat Mar  5 16:25:36 PST 2011     root@wolf.Belkin:/usr/src/sys/i386/compile/MinMax  i386
>Description:
% cat << GTC > gtags.c
#define MIN_ALEN   6   // MAX LEN
typedef float   FLOAT_T;

typedef enum    ENUM_T {
        EA = 100,
        EB,
        EC
} enum_t;
GTC

% ctags gtags.c # only enum_t TAG is generated

# comment the #define line with //, FLOAT_T TAG will gerated with incorrect content.
# completely remove the #define line, FLOAT_T can be generated properly;
# furthermore, never has a tag generated for EA, EB, and/or EC.

>How-To-Repeat:
See description
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204020446.q324k5LN048077>