ctags icon indicating copy to clipboard operation
ctags copied to clipboard

C++: initializing class instance using {} doesn't produce instance tag (take 2)

Open masatake opened this issue 3 years ago • 2 comments

#3423 may fix this. However, I found another limit of the parser:

class G g{1}, j{2};
class G h{1};

g, h, and j are not tagged. However, i in

class C i(2);

is tagged well. I will open a new issue based on this comment after merging #3423.

Originally posted by @masatake in https://github.com/universal-ctags/ctags/issues/3280#issuecomment-1171243081

masatake avatar Jul 05 '22 23:07 masatake

Hi,

The following snippet appears to exhibit the same problem:

auto var = std::string {};

If the curly braces are replaced with parentheses, it works. The issue seems similar even though the syntax is a tad different. Should I open a new issue?

Iorvethe avatar Sep 17 '22 14:09 Iorvethe

@Iorvethe, thank you. We can see the example input in your comment when we will work on this item. So the comment is enough for a while.

masatake avatar Sep 18 '22 11:09 masatake