all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 312 <moan1223@163.com>, 24038@debbugs.gnu.org
Subject: bug#24038: etags missing tag for static prototypes in header file
Date: Sun, 29 Sep 2019 06:57:42 +0200	[thread overview]
Message-ID: <CADwFkmk-C63=ueVgVQ-NWghMT3NOkv71iYTP4KyZsjLNcTUacQ@mail.gmail.com> (raw)
In-Reply-To: <6bf5b612.9f65.156088809dd.Coremail.moan1223@163.com>

tags 24038 + notabug
close 24038
quit

Eli Zaretskii <eliz@gnu.org> writes:

>> Date: Wed, 20 Jul 2016 21:39:08 +0800 (GMT+08:00)
>> From: 312 <moan1223@163.com>
>>
>> I found etags fails to create some tags for static method in header file. Is this a known issue.
>>
>> for example:
>>
>> etags NestedNameSpecifier.h
>>
>> lines between 100 and 162 is ignored, those are all static prototype.
>> Don¡¯t know why this happened.
>
> Thank you for your report.
>
> What is ignored are not static methods, but any method that is not
> in-line, i.e. for which you have only the declaration
> (a.k.a. "prototype") in the header file, without the implementation.
> For example, this method is also missing:
>
>   /// \brief Determine what kind of nested name specifier is stored.
>   SpecifierKind getKind() const;
>
> although it isn't declared 'static'.
>
> The reason is that etags by default doesn't tag declarations, on the
> assumption that the user wants to see the definitions of the methods,
> not their prototypes.  If you want declarations included, you need to
> invoke etags with the --declarations option.  (That will also tag
> global variables, so if you don't want that, use --no-globals as
> well.)
>
> IOW, this is not a bug, but the expected behavior.

Eli indicates above that this is expected behaviour.  I'm therefore
closing this as notabug.

If that's incorrect, please reopen.

Best regards,
Stefan Kangas





      parent reply	other threads:[~2019-09-29  4:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-20 13:39 bug#24038: etags missing tag for static prototypes in header file 312
2016-07-21 14:51 ` Eli Zaretskii
2019-09-29  4:57 ` Stefan Kangas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADwFkmk-C63=ueVgVQ-NWghMT3NOkv71iYTP4KyZsjLNcTUacQ@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=24038@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=moan1223@163.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.