ctags
ctags copied to clipboard
C++: initializing class instance using {} doesn't produce instance tag (take 2)
#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
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, 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.