Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Which tools for static code analysis do you use?

Which tools for static code analysis do you use?

Scheduled Pinned Locked Moved Qt Creator and other tools
6 Posts 6 Posters 14.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    markus.liebe
    wrote on last edited by
    #1

    Hi fellow devs,

    do you do static code analysis for your projects?
    If so, which tools do you use? (OpenSource, Commercial...)
    How do you use them? (Integration into QtCreator, standalone, etc.)

    Regards,
    Markus

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      Here we use pclint for static code analysis, and sometimes source monitor. But we are not using QtCreator on work, so we have integrated them in our build environment.

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #3

        Gerolf: Nothing should stop you from integrating static code analysis into your build system even when using Qt Creator:-)

        I do occassionally run "krazy":http://techbase.kde.org/Development/Tutorials/Code_Checking#The_KDE_.27Krazy.27_Checker over the code I work on. It is free, and does help to catch some Qt gotchas, even though it does not really do code analysis (it seems to be mostly regexp based).

        1 Reply Last reply
        0
        • M Offline
          M Offline
          maciej
          wrote on last edited by
          #4

          You can try "cppcheck":http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page

          Earth is a beta site.

          1 Reply Last reply
          0
          • P Offline
            P Offline
            petro.kazmirchuk
            wrote on last edited by
            #5

            Coverity. It is commercial, but with it you can write your own code checkers.

            1 Reply Last reply
            0
            • kidproquoK Offline
              kidproquoK Offline
              kidproquo
              wrote on last edited by
              #6

              You could look at using the "Clang Static Analyzer with Qt":http://qihome.org/qiliang/2011/08/08/clang-static-analyzer-with-qt/

              I think there has been at least some initial work on getting Clang working with Qt Creator.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved