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.
Set the path to the executable and (optionally) the working directory:
:let g:llvmcov#bin = "build/test/lib/unit_tests"
:let g:llvmcov#pwd = "."
This command run tests, so it coverage data is refreshed.
:CoverageRefresh
This command show coverage info for the source code in the current buffer.
:CoverageCurrentFile
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!
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 ⭐ 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!