让 Gnu Global 识别C++头文件

原创
2013/01/18 13:44
阅读数 881

使用 Gnu Global 来索引C++代码时,会发现定义在 .h文件中的class不能被索引,下面找到一个解决方法:

TUESDAY, JUNE 14, 2011 GNU Global does not recognize C++ classes By default, GNU Global does not treat .h files as source files. If you are using a C++ project, this is most likely the behavior you want. To treat .h files as source files, set the environment variable GTAGSFORCECPP. Run the following command or put it in your shell. Note, the example below is meant for Bash users. export GTAGSFORCECPP=""

展开阅读全文
加载中

作者的其它热门文章

打赏
0
1 收藏
分享
打赏
0 评论
1 收藏
0
分享
返回顶部
顶部