From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#24038: etags missing tag for static prototypes in header file Date: Sun, 29 Sep 2019 06:57:42 +0200 Message-ID: References: <6bf5b612.9f65.156088809dd.Coremail.moan1223@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="109078"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 312 , 24038@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 29 06:58:29 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iERHx-000SH2-CF for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Sep 2019 06:58:29 +0200 Original-Received: from localhost ([::1]:36776 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iERHu-0006Xi-Vb for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Sep 2019 00:58:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43908) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iERHY-0006Wl-P7 for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 00:58:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iERHW-0004YS-P7 for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 00:58:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43166) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iERHW-0004Xc-KD for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 00:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iERHW-0000Or-Ic for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 00:58:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <6bf5b612.9f65.156088809dd.Coremail.moan1223@163.com> Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Sep 2019 04:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24038 X-GNU-PR-Package: emacs Original-Received: via spool by 24038-submit@debbugs.gnu.org id=B24038.15697330811524 (code B ref 24038); Sun, 29 Sep 2019 04:58:02 +0000 Original-Received: (at 24038) by debbugs.gnu.org; 29 Sep 2019 04:58:01 +0000 Original-Received: from localhost ([127.0.0.1]:51985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iERHV-0000OU-0b for submit@debbugs.gnu.org; Sun, 29 Sep 2019 00:58:01 -0400 Original-Received: from mail-pf1-f175.google.com ([209.85.210.175]:45371) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iERHT-0000OC-L3 for 24038@debbugs.gnu.org; Sun, 29 Sep 2019 00:58:00 -0400 Original-Received: by mail-pf1-f175.google.com with SMTP id y72so3654151pfb.12 for <24038@debbugs.gnu.org>; Sat, 28 Sep 2019 21:57:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc :content-transfer-encoding; bh=dYEpfSluR0njSyyOblPncdIgqMlBiE4CU3J2ehUzKqg=; b=MuivyJlq2U+YMaW82IfATPJCDrrmCwJM0fiZCI+HcmofxHeNuum/zPWJWevrEdHUB3 qJ+CZlOqJvH5zGp+YIciy2RHEmFf7AfHQUiDE7KnQupy7abRL5BaK+B+wNDo4K7A49C1 jYa/2lSU2e8C8lnHxi+zExaeIE5L+cH84r1XDG7TGAwsmLFkY+kTmb6A5wHMR4xNucGu xLmlcJT9VNlmvEoBRBQ6vyNLrE++jy5gTjols7U/cGtMh3h6zEZDFnKoogVK4qPxYHlK icRQl8CqYkNXck2e4ysx0oG0mXOXOclxvr+JnES3ZZn8Tx34h07ay7NYnyhFP2xHEhN5 5Btg== X-Gm-Message-State: APjAAAU4tUgZmhJkth+J2sE8IGKI91S8oLXYOkEYIgPVSrZaVVMXtdEL 6pQNJJYq9vRCvKfsCiGEtEOKAvCEx+gY3DJGIUzV3q9I/YY= X-Google-Smtp-Source: APXvYqylL+0QPYbVYYVRm9K/NFQ0fGxX3a/964rQGB/BcX47NKAVJjqOw++7d7FAA82g0HLL+xCP6HGOELVXEJTA930= X-Received: by 2002:a17:90a:1150:: with SMTP id d16mr20092552pje.2.1569733073476; Sat, 28 Sep 2019 21:57:53 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:167596 Archived-At: tags 24038 + notabug close 24038 quit Eli Zaretskii writes: >> Date: Wed, 20 Jul 2016 21:39:08 +0800 (GMT+08:00) >> From: 312 >> >> 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=C2=A1=C2=AFt 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