unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* etags excluding one-line typedefs
@ 2005-03-01 18:57 art
  0 siblings, 0 replies; only message in thread
From: art @ 2005-03-01 18:57 UTC (permalink / raw)


Hello,

In the project we're doing I want to have etags exclude one-line struct
typedefs:

typedef struct Foo Foo;

but I don't want to exclude anonymous struct typedefs, or other
typedefs:
typedef struct
{
} Foo;

This option excludes all typedefs:
etags -R --C-kinds=-t --langmap=c:+.h

and the --regex option doesn't exclude already matching tags, it just
extends them:
etags --regex-C='/typedef.*;/xxx/' testtags.*

will generate:
typedef struct _Foo Foo;\x7fxxx\x016,195
typedef struct _Foo Foo;\x7fFoo\x016,195
typedef struct _Bar Bar;\x7fxxx\x017,221
typedef struct _Bar Bar;\x7fBar\x017,221

So I'm at a loss as to how to do this. Can etags be extended in this
way?

Also, here is etags version:
$ etags --version
Exuberant Ctags 5.5, Copyright (C) 1996-2003 Darren Hiebert
  Compiled: Jun  5 2003, 10:00:19
  Addresses: <dhiebert@users.sourceforge.net>,
http://ctags.sourceforge.net
  Optional compiled features: +wildcards, +regex, +internal-sort

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-01 18:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-01 18:57 etags excluding one-line typedefs art

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).