当前位置:   article > 正文

让 Gnu Global 识别C++头文件

gnu global 搜索.h文件

使用 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=""

转载于:https://my.oschina.net/zengsai/blog/102933

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/294281
推荐阅读
相关标签
  

闽ICP备14008679号