Ⅰ. 插件描述
The llvm-cov tool shows code coverage information for programs that are instrumented to emit profile data.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'alepez/vim-llvmcov'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'alepez/vim-llvmcov'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'alepez/vim-llvmcov'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/alepez/vim-llvmcov
Ⅳ. 文档说明
# vim-llvmcov
Vim plugin to show code coverage with llvm cov tool.
The llvm-cov tool shows code coverage information for programs that are
instrumented to emit profile data.
This plugin works with languages supported by llvm: C,C++,Objective-C.
Usage
Set the path to the executable and eventually the working directory:
:let g:llvmcov#bin = "build/test/lib/unit_tests"
:let g:llvmcov#pwd = "."Refresh coverage info
This command run tests, so it coverage data is refreshed.
:CoverageRefreshShow coverage
This command show coverage info for the source code in the current buffer.
:CoverageCurrentFileDevelopment
Contributing
If you'd like to help, check out the
issues. I'd greatly appreciate
any contribution you make. Beer is also appreciated ☺
If you have a question, a feature request, or a new idea, don't hesitate to
post new issues or pull requests. Collaboration is the most awesome thing in
the open source community!
Self-Promotion
Like vim-llvcov? Follow the repository on
GitHub and vote for it on
vim.org. And if you're
feeling especially charitable, follow Alessandro Pezzato
on Twitter and
GitHub.
If you like the plugin please don't forget to leave a :star: for this project!
This will help me to estimate the plugin popularity and plan further
development.
If you have already starred this repo, thank you!
