Running ctags on this source file I get tags for Foo and y but not for x.
Foo
y
x
struct Foo { bool x{false}; bool y = false; };
Universal-ctags (https://ctags.io) handles it well as following:
[yamato@master]/tmp% cat foo.cpp struct Foo { bool x{false}; bool y = false; }; [yamato@master]/tmp% u-ctags -o - foo.cpp Foo foo.cpp /^struct Foo {$/;" s file: x foo.cpp /^ bool x{false};$/;" m struct:Foo typeref:typename:bool file: y foo.cpp /^ bool y = false;$/;" m struct:Foo typeref:typename:bool file:
Log in to post a comment.
Universal-ctags (https://ctags.io) handles it well as following: