Visual Lint Getting Started GuideIf this is the first time you have used Visual Lint, you may find the following introductory information useful. Please feel free to contact us if you have any specific queries.
IntroductionVisual Lint integrates code analysis tools including PC-lint, CppCheck, cpplint and FxCop within the Microsoft Visual Studio and Eclipse integrated development environments. Among the features which you might want to be aware of are:
InstallationWhen run, the installation program will install the Visual Lint plug-ins (VisualLint.dll and VisualLintEclipse.dll) to the selected directory (C:\Program Files\Riverblade\Visual Lint by default), and configure all supported environments to load it. Once installed, Visual Lint commands can be invoked from the "Visual Lint" toolbar or (if available) via the corresponding commands on the "Tools" menu.
ConfigurationBefore starting to use Visual Lint it is necessary to configure it for the analysis tools you intend to use. The simplest way to do this is to run the Visual Lint Configuration Wizard: Configuration for CppCheck, cpplint or FxCop analysisConfiguration for these analysis tools is straightforward - in fact in most cases, all you will need to do is install the analysis tool and tell Visual Lint where to find it:
Configuration for PC-lint analysisConfiguration for PC-lint analysis is a bit more involved, as it needs detailed information upon the configuration of the C/C++ compiler in order to parse the code effectively. Key to this are
two configuration files - conventionally The simplest way to configure these files is again to use the Configuration Wizard.
Once these files have been configured Visual Lint itself can be configured, using the Visual Lint "Options" command (on the toolbar and Tools menu). The following pages are provided:
Note that initially Visual Lint is configured not to start background analysis of files automatically. This, and how many analysis threads should be used, may be configured from the General options page.
Using Visual LintAnalysing a file manuallyOnce Visual Lint has been configured, a simple and effective way to test its operation is to analyse an implementation file manually. To do this, simply open a C++ implementation file (it need not be part of a project), and press the "Perform Manual Analysis" button on the toolbar. A progress dialog will appear while the analysis takes place: Note: Manual analysis is not currently available with the FxCop analysis tool. After a short delay (depending on how long the analysis tool takes to analyse the file) the results of the analysis will be displayed in the Analysis Results Display and (optionally) a dedicated pane in the Output Window: As you would expect, double clicking on an issue in the Analysis Results Display or Output Window will open the corresponding file in the editor. The display also allows the analysis results to be sorted and filtered.
Background AnalysisBackground Analysis is a unique feature of Visual Lint. Once Visual Lint has been configured correctly, background analysis can be started or paused at any time from the toolbar or menu. As the analysis of a solution progresses, Visual Lint will build up an "analysis profile" of the solution which can be referred to at any time subsequently. Following a build (during which analysis is automatically paused by default), any files which have been rebuilt will normally be queued for re-analysis. Previous analysis results remain available until updated, of course. Background analysis is also of course normally paused while debugging.
Making use of Analysis ResultsOnce an analysis profile has been built up for a given solution, Visual Lint will use it to make the warnings for an implementation file available (via the Analysis Results Display (and optionally the Output Window) when a file is opened or activated in the code editor if the development environment is in design mode. If an implementation file is saved, the analysis results will be queued for update automatically.
Viewing ReportsVisual Lint can constantly update an HTML report giving details of the warnings found in the current solution. At any time, this can be viewed either inside the development environment or in an external browser. The report format is very similar to those generated by LintProject.
Accelerating Analysis Using IncrediBuildA complete PC-lint analysis run on a large solution can be a slow process. If you find this to be a problem, you might find it useful to know that Visual Lint Enterprise Edition can integrate with Xoreax IncrediBuild to transparently run analysis tasks on machines with spare processing capacity on your network. By doing so, the time taken to analyse solutions can be significantly reduced. To activate the IncrediBuild integration, toggle the "Use IncrediBuild for analysis tasks" option on the Visual Lint Toolbar: ![]() Once activated, Visual Lint analysis tasks will be distributed across all available IncrediBuild agents: Using Visual Lint and IncrediBuild together can result in a very substantial reduction in overall analysis time as you are effectively only limited by the number of available IncrediBuild agents on your network. Please note that:
FAQ
|
|||||||||||||||
| Analysis Tool | Language | Licence |
|---|---|---|
| Gimpel PC-lint | C/C++ | Commercial |
| CppCheck | C++ | Open Source |
| Google cpplint.py | C++ | Open Source |
|
Microsoft FxCop |
C# | Freeware |
Note: If you need to purchase a copy of PC-lint we can supply both LAN and Workstation licences directly - please contact us for details. Please contact Gimpel Software for support and other information regarding PC-lint.
Visual Lint has been tested on Windows 2000 SP4, Windows Server 2003 (SP1 and R2), Windows XP (SP2 and SP3), Windows Vista (RTM and SP1), Windows 7 and Windows Server 2008. Both x86 and x64 installations are supported.
Please contact us if you have any queries about compatibility with a particular platform or service pack level.
Visual Lint is compatible with eMbedded Visual C++ 4.0, Microsoft Visual Studio 6.0, Visual Studio .NET 2002, Visual Studio .NET 2003, Visual Studio 2005, Visual Studio 2008 and Visual Studio 2010.
Please contact us if you have any queries about compatibility with a particular environment or service pack level.
Visual Lint has been tested with Eclipse 3.1 onwards using the MinGW toolchain. Please contact us if you have any queries about compatibility with a particular Eclipse configuration.
Visual Lint is compatible with all editions of Visual C++ and Visual Studio, with the exception of Visual Studio Express Editions.
This restriction is not one of our choosing - unfortunately the Visual Studio Express Editions do not allow the loading of third party add-ins and extension packages. This is a limitation imposed directly by Microsoft themselves.
PC-lint does not have a trial version, and therefore we cannot (unfortunately) include it in the Visual Lint installer. You will therefore need a licenced PC-lint installation in order to use Visual Lint.
If you need to purchase a copy of PC-lint you can purchase one from our online store. Please contact Gimpel Software for support and other information regarding PC-lint itself.
Visual Lint currently supports analysis of C, C++ and C# codebases via a selection of analysis tools, with support for Java under development.
If you need support for another language or analysis tool please contact us and we will look into integrating it into Visual Lint.
Visual Studio .NET 2002, Visual Studio .NET 2003, Visual Studio 2005, Visual Studio 2008 and Visual Studio 2010 allow extremely close integration into the IDE. Under these environments, Visual Lint will integrate its commands into the Visual Studio menubar and command bars, and even add a "Perform Manual Analysis" command to the context menu in the code editor. The three Visual Lint toolwindows can be docked anywhere in the IDE, and can be pinned and autohidden just like any other window.
Under Visual C++ 6.0 and eMbedded Visual C++ 4.0 the level of integration we can offer is, unfortunately, rather more limited. Visual Lint will still create its own toolbar (named "VisLint" rather than "Visual Lint" due to the rather low level method we have to use to set the name), but it cannot add commands to the menubar or control the state of the toolbar commands (disabled, selected etc.) as the IDE simply does not provide the capability for add-ins to do this. Even worse, the IDE does not provide any capabilities to integrate third party toolwindows. We have, however, been able to integrate them into the Workspace View (but not the Output Window - at least not yet) using window subclassing techniques.
Yes. The Command Line page in the Options Dialog provides a control which allows you to enter parameters to pass to the active analysis tool. Registered copies of Visual Lint Professional and Enterprise Editions also provide a similar capability on a per solution or per project basis.
Please contact us if you have specific requirements.
By default, the Message Lookup Display uses a Courier font for displaying the details of selected messages. Although the font used in the display is not configurable via the user interface, it can be configured using the registry. To do this, all you have to do is set the following registry keys to the font name and size (in points) you wish to use:
HKEY_CURRENT_USER\Software\Riverblade\Visual Lint\Settings\Displays\Warning Lookup\Font FamilyWe have created a registry export file which will do this for you (for Consolas 10 point) without having to fiddle around in the registry editor. Feel free to download it and modify to your preferred font settings.
HKEY_CURRENT_USER\Software\Riverblade\Visual Lint\Settings\Displays\Warning Lookup\Font Size
VisualLintAddInSetup /s LICENCE_USER=<Licenced User> LICENCE_KEY=<Licence Key> /l=<logfile pathname>
LICENCE_USER and LICENCE_KEY are optional, and should be used if you need to install a licence key at the same time as the installation. Similarly, to uninstall use: VisualLintAddInSetup /s MODIFY=FALSE REMOVE=TRUE UNINSTALL=YES /l=<logfile pathname>
If you require a customised installation (for example to specify the installation folder or a group policy compatible installer) please contact us.
If you have any problems, bug reports or suggestions, please email them to us at support@riverblade.co.uk. We will endeavour to provide bug fixes and other support as quickly as possible.
Since we try to produce updates as often as we reasonably can, so please visit the Visual Lint page on the Riverblade website (http://www.riverblade.co.uk/products/visual_lint) for the latest information before contacting us with a bug report. You may find that the bug you're about to report has already been fixed!
Finally, we hope you find Visual Lint useful. We would be very interested to hear your suggestions for improving it further.
|
||||||||