从特定头文件生成 ctags
我刚刚开始学习STM32微处理器(仅限C),我想为vim-omniccpcomplete生成ctags
,但是有一个小问题,这个MCU的头文件是这样写的:
<代码>
typedef struct
{
int foo1;
int foo2;
int foo3;
} RCC_Typedef;
#define RCC_BASE (0x3800) // direct place in memory (special function register...)
#define RCC ((RCC_TypeDef *) RCC_BASE)
我想生成 ctags,以便我可以使用我的 vim 进行如下示例:
RCC->foo1 = 3;
当我使用
ctags -f ~/.vim/stm_ctags stm32f4xx.h
生成的 ctags 时,vim 无法有效地使用它们。
感谢您的帮助,对于我的英语水平感到抱歉
I have just started learning with STM32 microprocessors (C only) and I would like to generate ctags
for vim-omniccpcomplete, but there is a little problem that the header file for this MCU is written like this:
typedef struct { int foo1; int foo2; int foo3; } RCC_Typedef; #define RCC_BASE (0x3800) // direct place in memory (special function register...) #define RCC ((RCC_TypeDef *) RCC_BASE)
I would like to generate ctags so that I can use my vim for examples like this one:
RCC->foo1 = 3;
When I used
ctags -f ~/.vim/stm_ctags stm32f4xx.h
Generated ctags weren't generated well for vim to use them effectively.
Thanks for help and I'm sorry for my English
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论