Your message dated Tue, 16 Dec 2008 10:50:02 +0000
with message-id <20081216105002.gz4...@riva.ucam.org>
and subject line Re: Bug#508856: exuberant-ctags: fails to parse C functions
has caused the Debian Bug report #508856,
regarding exuberant-ctags: fails to parse C functions
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
508856: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508856
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: exuberant-ctags
Version: 1:5.7-4
Severity: normal
When parsing a .h file with one simple function, the tags file
generated doesn't have any function tag.
Example:
---
one.h
void one(int a);
-----
I'm trying to generate a tag file from that .h but no tag is generated.
Thanks.
David.
-- System Information:
Debian Release: 5.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-1-amd64 (SMP w/1 CPU core)
Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages exuberant-ctags depends on:
ii libc6 2.7-16 GNU C Library: Shared libraries
exuberant-ctags recommends no packages.
Versions of packages exuberant-ctags suggests:
ii nvi 1.81.6-4 4.4BSD re-implementation of vi
ii vim 2:7.2.049-2 Vi IMproved - enhanced vi editor
ii vim-gnome [vim] 2:7.2.049-2 Vi IMproved - enhanced vi editor -
ii vim-gtk [vim] 2:7.2.049-2 Vi IMproved - enhanced vi editor -
-- no debconf information
--- End Message ---
--- Begin Message ---
On Mon, Dec 15, 2008 at 08:56:24PM -0200, David Roguin wrote:
> When parsing a .h file with one simple function, the tags file
> generated doesn't have any function tag.
> Example:
>
> ---
> one.h
>
> void one(int a);
>
> -----
>
> I'm trying to generate a tag file from that .h but no tag is generated.
ctags does not generate tags for function prototypes by default, only
for the actual function definitions. See the documentation for the
--<LANG>-kinds option in ctags(1), and:
$ ctags --list-kinds=c
c classes
d macro definitions
e enumerators (values inside an enumeration)
f function definitions
g enumeration names
l local variables [off]
m class, struct, and union members
n namespaces
p function prototypes [off]
s structure names
t typedefs
u union names
v variable definitions
x external and forward variable declarations [off]
Thus, if you use the option "--c-kinds=+p", it'll generate a tag for
your function prototype.
Regards,
--
Colin Watson [cjwat...@debian.org]
--- End Message ---