Giter Site home page Giter Site logo

lintplug's Introduction

LintPlug

PC Lint plugin for Qt Creator

Compiling LintPlug

Prerequisites:

  • Qt library in the same version as used by target Qt Creator (Qt 5.5.1 for QtCreator 3.5.1) The installed toolchain have to match the one Qt was compiled with.

Builds for lates QtCreator releases

1.	Create a working directory under which to check out Qt Creator.

2.	In the working directory, check out the respective branch of Qt Creator (master branch or latest version, see
   <https://code.qt.io/cgit/qt-creator/qt-creator.git>).

3.	Check out LintPlug from https://github.com/R-Typ/LintPlug.git

4.	Build Qt Creator. See https://github.com/qtproject/qt-creator for step by step instructions.

5.	Set environment variable QTC_SOURCE to point to Qt Creator directory from step 2 and QTC_BUILD to point to Qt Creator build directory from step 4. Alternatively you can set these values directly in lintplug.pro file.

6.	Build release version of LintPlug using QtCreator or from command line. Target LintPlug.dll/so is automatically deployed in lib/qtcreator/plugins of Qt Creator build. 

Other notes

I didn't find a reliable way to get active project sources if different configurations are present in .pro file. There is also no way to get directory where MOC files are generated. Therefore all includes will be checked in project and moc files should be in build directory.

Because output is sorted, there is no sense to have messages with code 830 and 831. Just suppress them in startup options under Tools/Options/Analizer/PC Lint:

-e830 // Location cited in prior message -e831 // Reference cited in prior message

I used example.lnt as command line argument for my tests. There are some screenshots in /screenshots directory.

lintplug's People

Contributors

r-typ avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.