[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24038: etags missing tag for static prototypes in header file
From: |
Stefan Kangas |
Subject: |
bug#24038: etags missing tag for static prototypes in header file |
Date: |
Sun, 29 Sep 2019 06:57:42 +0200 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#24038: etags missing tag for static prototypes in header file,
Stefan Kangas <=