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
Forum Updated to NodeBB v4.3 + New Features

Using CppCheck inside Qt Creator

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
3 Posts 2 Posters 2.0k 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 13 Jul 2020, 15:17 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?

    J 1 Reply Last reply 15 Jul 2020, 07:32
    1
    • A Ananym
      13 Jul 2020, 15:17

      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?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 15 Jul 2020, 07:32 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 15 Jul 2020, 12:51 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

        1/3

        13 Jul 2020, 15:17

        • Login

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