The llvm-cov tool shows code coverage information for programs that are instrumented to emit profile data.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
autoload
plugin
.gitignore
README.md

README.md

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.

asciicast

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.

:CoverageRefresh

Show coverage

This command show coverage info for the source code in the current buffer.

:CoverageCurrentFile

Development

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 ⭐️ 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!