如何让 exuberant-ctags 解析“使用”样式类型定义?

shi*_*jin 5 c++ ctags exuberant-ctags c++11

如何让 ctags 解析using类型别名,如下所示?

using FooPtr = std::shared_ptr<Foo>;
Run Code Online (Sandbox Code Playgroud)

它只选取用 声明的那些typedef

Mas*_*ATO 5

从 Exuberant-ctags 分叉的Universal-ctags( https://ctags.io ) 处理 C++ 源文件中的“using”:

[jet@localhost]/tmp% cat /tmp/foo.cpp 
using FooPtr = std::shared_ptr<Foo>;
[jet@localhost]/tmp% u-ctags -o - /tmp/foo.cpp
FooPtr  /tmp/foo.cpp    /^using FooPtr = std::shared_ptr<Foo>;$/;"  t   typeref:typename:std::shared_ptr<Foo>   file:
Run Code Online (Sandbox Code Playgroud)