sponsor Vim development Vim logo Vim Book Ad

cpp_cppcheck.vim : Run Cppcheck on the current window.

 script karma  Rating 13/8, Downloaded by 1019  Comments, bugs, improvements  Vim wiki

created by
script type
This plugin will let you run Cppcheck on the C++ code in the current window. Errors from Cppcheck are presented in the quickfix window so you can edit - check - edit. Just use the command :Cppcheck. After installing the plugin, use :help cpp_cppcheck in Vim for details, including how to set command line options for Cppcheck.

If you encounter any problems, or have feature requests, please create an issue at https://github.com/brobeson/Tools/

I've tested this with Vim 7.4 on Linux (Kubuntu 15.04). Other platforms and versions of Vim should work, but I can't be sure.
install details
You need Cppcheck installed, and available through your PATH environment variable. See http://cppcheck.sourceforge.net to get Cppcheck.
Download the vimball, open it in Vim, and source it all:
vim cpp_cppcheck.vmb
:source %

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
cpp_cppcheck.vmb 1 2015-06-02 7.4 Brendan Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.