unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5605: etags of emacs 23.1 misses template specializations
@ 2010-02-19 21:28 Bob
  2021-06-03  9:15 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Bob @ 2010-02-19 21:28 UTC (permalink / raw)
  To: 5605


[-- Attachment #1.1: Type: text/plain, Size: 553 bytes --]

Run "etags" of emacs 23.1 on the attached "Foo.H" file . 

 

The resulting TAGS file indicates "Foo.H" is empty.

 

Seems to me it should show two definitions for the 2 specializations of
`Worker`. 

 

----------- TAGS --------------
^L

Foo.H,0

----------------------------------

 

----------- Foo.H ----------------

template<

  class _A,

  class _B = Select<_A>::Result

  >

class Worker;

 

 

template<class _A>

class Worker<_A,int>

{

};

 

template<class _A>

class Worker<_A,double>

{

};

---------------------------------------


[-- Attachment #1.2: Type: text/html, Size: 3302 bytes --]

[-- Attachment #2: Foo.H --]
[-- Type: text/plain, Size: 173 bytes --]


template<
  class _A,
  class _B = Select<_A>::Result
  >
class Worker;


template<class _A>
class Worker<_A,int>
{
};

template<class _A>
class Worker<_A,double>
{
};

  

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#5605: etags of emacs 23.1 misses template specializations
  2010-02-19 21:28 bug#5605: etags of emacs 23.1 misses template specializations Bob
@ 2021-06-03  9:15 ` Lars Ingebrigtsen
  2021-06-03 12:11   ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-06-03  9:15 UTC (permalink / raw)
  To: Bob; +Cc: 5605

"Bob" <purchasebyemail1@comcast.net> writes:

> Run "etags" of emacs 23.1 on the attached "Foo.H" file . 
>
> The resulting TAGS file indicates "Foo.H" is empty.
>
> Seems to me it should show two definitions for the 2 specializations of `Worker`. 

(I'm going through old bug reports that unfortunately got no response at
the time.)

I don't know whether it should or not, but the behaviour of etags in
Emacs 28 is still the same -- it produces an empty TAGS file.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#5605: etags of emacs 23.1 misses template specializations
  2021-06-03  9:15 ` Lars Ingebrigtsen
@ 2021-06-03 12:11   ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2021-06-03 12:11 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 5605, purchasebyemail1

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Thu, 03 Jun 2021 11:15:35 +0200
> Cc: 5605@debbugs.gnu.org
> 
> "Bob" <purchasebyemail1@comcast.net> writes:
> 
> > Run "etags" of emacs 23.1 on the attached "Foo.H" file . 
> >
> > The resulting TAGS file indicates "Foo.H" is empty.
> >
> > Seems to me it should show two definitions for the 2 specializations of `Worker`. 
> 
> (I'm going through old bug reports that unfortunately got no response at
> the time.)
> 
> I don't know whether it should or not, but the behaviour of etags in
> Emacs 28 is still the same -- it produces an empty TAGS file.

'etags's support for templates is very rudimentary, it doesn't
currently identify a class if its name is followed by <foo,bar>.
Patches welcome.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-03 12:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-19 21:28 bug#5605: etags of emacs 23.1 misses template specializations Bob
2021-06-03  9:15 ` Lars Ingebrigtsen
2021-06-03 12:11   ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

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

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).