Coverity compiler plugin


Ⅰ. 插件描述

Compiler plugin for the cov-format-errors command in Coverity static analysis

Ⅱ. 基本信息

创建日期:  2012-02-14
使用用户:  1
Github星:  2
插件作者:  Ben Fritz

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/coverity-compiler-plugin'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/coverity-compiler-plugin'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/coverity-compiler-plugin'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/Coverity-compiler-plugin

Ⅳ. 文档说明

Simple compiler plugin to set up an errorformat and makeprg for the cov-format-errors command which ships with Coverity Static Analysis ( http://coverity.com/products/static-analysis.html ). Mostly useful for quick tests since it does not communicate with the Integrity Manager at all. If you want that, Coverity (the company) has a solution which does in their knowledge center ( http://coverity5.coverity.com/node/520 ), but I've not tried it.

Currently without documentation, this script pretty self explanatory. Use :compiler coverity to set the compiler, as normal.

When setting the compiler, the script will prompt you for a path to the Coverity emit/intermediate directory you are interested in parsing. You can optionally set the variable b:coverity_emit_dir to this path and it will just use the path instead of prompting you.

添加新评论