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. Using CppCheck inside Qt Creator
Qt 6.11 is out! See what's new in the release blog

Using CppCheck inside Qt Creator

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
3 Posts 2 Posters 2.5k 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.
  • A Offline
    A Offline
    Ananym
    wrote on last edited by
    #1

    I'm trying to follow https://doc.qt.io/qtcreator/creator-cppcheck.html . I've installed cppcheck. I've enabled the plugin. I've set the options, including a valid path to the cppcheck exe, in tools->options->analyzer->cppcheck.

    And yet, there's no cppcheck option under the Analyze menu as this guide seems to suggest. I can't find the button to actually run the tool anywhere in Qt Creator 4.9.1. What am I missing?

    jsulmJ 1 Reply Last reply
    1
    • A Ananym

      I'm trying to follow https://doc.qt.io/qtcreator/creator-cppcheck.html . I've installed cppcheck. I've enabled the plugin. I've set the options, including a valid path to the cppcheck exe, in tools->options->analyzer->cppcheck.

      And yet, there's no cppcheck option under the Analyze menu as this guide seems to suggest. I can't find the button to actually run the tool anywhere in Qt Creator 4.9.1. What am I missing?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Ananym Did you "11. Select Analyze"? It should analyze then. Maybe after that you will have the menu entry?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • A Offline
        A Offline
        Ananym
        wrote on last edited by Ananym
        #3

        Looks like Cppcheck is now a passive thing rather than something you explicitly run?
        There's no entry for cppcheck under the analyze submenu, but I'm now seeing cppcheck's output as code warnings, so I'm content.

        1 Reply Last reply
        2

        • Login

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