Click here to Skip to main content
15,883,809 members
Articles / Desktop Programming / MFC

LintProject - Improving the Usability of PC-Lint with Visual C++ Solutions and Projects

,
Rate me:
Please Sign up or sign in to vote.
4.83/5 (36 votes)
29 Jan 2009CPOL13 min read 279.5K   1.7K   52  
Utility to run PC-Lint on Visual C++ solutions and projects, generating XML and HTML reports of the results.
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE 
BEGIN
    "#include ""afxres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE 
BEGIN
    "\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED

#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////////
// English (U.K.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENG)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
#pragma code_page(1252)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// XSL
//

IDR_LINT_PROJECT_TEMPLATE_HTML XSL                     "Xml\\ProjectLintResultsHtml.xsl"
IDR_LINT_SOLUTION_TEMPLATE_HTML XSL                     "Xml\\SolutionLintResultsHtml.xsl"

/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 1,4,1,13
 PRODUCTVERSION 1,4,0,0
 FILEFLAGSMASK 0x17L
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "080904b0"
        BEGIN
            VALUE "Comments", "http://www.riverblade.co.uk"
            VALUE "CompanyName", "Riverblade Limited"
            VALUE "FileDescription", "LintProject command line tool"
            VALUE "FileVersion", "1.4.1.13"
            VALUE "InternalName", "LintProject"
            VALUE "LegalCopyright", "Copyright � 2004-2009 by Riverblade Limited"
            VALUE "OriginalFilename", "LintProject.exe"
            VALUE "ProductName", " LintProject"
            VALUE "ProductVersion", "1.4"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x809, 1200
    END
END


/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE 
BEGIN
    IDS_LINT_COPYRIGHT_BANNER 
                            "\r\nLintProject - Visual C++ Project Linting Utility version %s\r\n\r\nCopyright (c) 2004-2008 by Riverblade Limited\r\nhttp://www.riverblade.co.uk\r\n"
    IDS_LINT_SYNTAX_MSG     "\r\nLintProject allows PC-Lint analysis of Visual C++ projects and solutions to\r\nbe carried out, with the results presented in linked HTML reports.\r\n\r\nSyntax: LintProject <Project/Solution pathname> <output folder> [parameters]\r\n\r\nParameters:\r\n\r\n  /f<LintFolder>                      The PC-Lint installation folder\r\n  /param""<PC-Lint parameters>""        Extra parameters to use analysing files\r\n  /lntparam""<PC-Lint parameters>""     Extra parameters to use generating\r\n                                      project.lnt files\r\n  /cfg""<Configuration to analyse>""    Select the configuration to analyse\r\n  /cfg?                               Display configurations for the specified\r\n                                      solution/project\r\n  /exclude""<project,...>""             Exclude project(s) from solution analysis\r\n  /s                                  Show and dynamically update HTML reports\r\n  /?                                  Display this help screen."
    IDP_LINT_ERR_MSXML_NOT_INSTALLED 
                            "ERROR: MSXML3 not found.\r\n\r\nLintProject requires MSXML3 in order to generate output reports. It can be made available by installing the XML SDK (distributed with the Platform SDK)."
    IDP_LINT_ERR_EXECUTABLE_NOT_FOUND 
                            "ERROR: PC-Lint executable (lint-nt.exe) not found in folder %s."
    IDP_LINT_ERR_FOLDER_NOT_FOUND 
                            "ERROR: PC-Lint installation folder not found."
    IDP_LINT_ERR_MFC_INIT_FAILED "Fatal Error: MFC initialization failed"
END

#endif    // English (U.K.) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//


/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Founder Riverblade Limited
United Kingdom United Kingdom
I haven't always written software for a living. When I graduated from Surrey University in 1989, it was with an Electronic Engineering degree, but unfortunately that never really gave me the opportunity to do anything particularly interesting (with the possible exception of designing Darth Vader's Codpiece * for the UK Army in 1990).
    * Also known as the Standard Army Bootswitch. But that's another story...
Since the opportunity arose to lead a software team developing C++ software for Avionic Test Systems in 1996, I've not looked back. More recently I've been involved in the development of subsea acoustic navigation systems, digital TV broadcast systems, port security/tracking systems, and most recently software development tools with my own company, Riverblade Ltd.

One of my personal specialities is IDE plug-in development. ResOrg was my first attempt at a plug-in, but my day to day work is with Visual Lint, an interactive code analysis tool environment with works within the Visual Studio and Eclipse IDEs or on build servers.

I love lots of things, but particularly music, photography and anything connected with history or engineering. I despise ignorant, intolerant and obstructive people - and it shows...I can be a bolshy cow if you wind me up the wrong way...Laugh | :laugh:

I'm currently based 15 minutes walk from the beach in Bournemouth on the south coast of England. Since I moved here I've grown to love the place - even if it is full of grockles in Summer!

Written By
Software Developer Riverblade Ltd
United Kingdom United Kingdom
I'm a software developer and/or tester with Riverblade Ltd (www.riverblade.co.uk) developing our core product range including our Visual Lint integration product and Lint Project Professional.

I incorporate a number of technologies into a daily basis including Windows API, C++ (VS2008), Managed C++, CLI, Databases, Java, JNI, Eclipse Framework, CDT and of course Visual Studio Extensibility (VSIP VSX).

In my spare time I enjoy cooking (prepping ingredients from scratch!), running, cycling, swimming, reading, interested in experimental electronic music (such as ClockDVA), movies, volunteering my IT skills where I can.

Comments and Discussions