如何让 exuberant-ctags 解析 "using" 风格的类型定义?
How to make exuberant-ctags parse "using" style typedefs?
如何让 ctags 解析 using
类型别名,如下所示?
using FooPtr = std::shared_ptr<Foo>;
它只提取用 typedef
声明的。
从 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:
如何让 ctags 解析 using
类型别名,如下所示?
using FooPtr = std::shared_ptr<Foo>;
它只提取用 typedef
声明的。
从 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: