Emacs中使用Ebrowse来浏览C++代码
来源:互联网 发布:淘宝联系卖家客服不回 编辑:程序博客网 时间:2024/04/28 16:18
1 Ebrowse说明
Ebrowse是一款类似cscope的工具,但是它只能专用于C++代码.Emacs可以使用它浏览C++中的类继承信息. Ebrowse其实分为两个部分,一个部分是Emacs自带的ebrowse(windows中为ebrowse.exe)命令,该命令可以在shell中运行.另一部分则为Emacs编辑器中的ebrowse相关Lisp程序. 在使用Ebrowse前,需要使用ebrowse命令对源代码进行预处理生成数据库,随后Emacs才能通过读取数据库的内容来显示/操作源代码中的类,成员,全局函数,宏,类型等..
2 ebrowse命令
使用ebrowse命令生成源代码数据库的方式很简单,只需要执行`ebrowse 源代码文件名`即可. 当然ebrowse命令也提供了许多命令选项.使用选项`–help`来显示帮助信息
3 Tree-buffers
使用C-x C-f打开ebrowse命令生成的文件时,会自动进入Tree-buffer,在其中提供了如下一些操作
3.1 操作
4 Member-buffers
存在6中不同的member-buffers,分别用来表示
Instance variables
Instance functions
Static variables
Static member functions
Friend functions
Types
4.1 操作
4.2 member属性说明
属性列表从左至右说明为:
T member是template
C member声明为extern "C"
v member声明为virtual
i member声明为inline
c member是const的
0 member是纯虚函数
m member声明为mutable
e member声明为explicit
t member声明了throw list
5 查询tag
ebrowse也提供了一些类似find-tag这样的命令,你可以在C++源代码buffer中执行如下一些命令.
5.1 操作
本文出自 “暗日” 博客,请务必保留此出处http://darksun.blog.51cto.com/3874064/1352691
- Emacs中使用Ebrowse来浏览C++代码
- 在Emacs中使用etags来浏览代码
- 在Emacs中使用etags来浏览代码
- 在Emacs中使用etags来浏览代码
- emacs代码浏览+跳转
- emacs cscope浏览代码
- emacs代码浏览+跳转
- 使用Emacs Cscope来阅读代码
- 使用Emacs+Cscope来阅读代码
- emacs中c代码的缩进问题
- emacs 中使用 ecb & cedet 阅读代码
- emacs 中使用 cscope 阅读代码
- windows下Emacs使用cscope来阅读代码
- emacs Bookmark Plus 代码浏览/导航
- Emacs学习笔记(8): 使用emacs浏览网页
- emacs中格式化代码
- Emacs C-mode使用
- Emacs使用c-mode
- Emacs编辑程序常用命令
- Emacs中的日程管理
- Emacs中的版本控制
- Emacs中的IRC -- Erc
- IRC扫盲——你可以不会玩QQ,但不能不会IRC!
- Emacs中使用Ebrowse来浏览C++代码
- Emacs中的speedbar
- 当 Shell 遇见 Emacs -- 大话 Emacs Shell Mode
- Emacs中的IRC客户端--ERC
- Emacs中的Info阅读操作
- 扩展Emacs的Dired-mode:Dired-X的简单笔记
- Emacs中读懂man文档的woman
- Emacs中的RSS阅读器--newsticker
- Emacs中的资料收集工具--Remember