Menu

confusion about perfomed check with --enable

frithjofh
2015-03-20
2015-03-24
  • frithjofh

    frithjofh - 2015-03-20

    hello,

    the help information of cppcheck 1.68 states that enabling style enables the following checks:

    • style
      Enable all coding style checks. All messages
      with the severities 'style', 'performance' and
      'portability' are enabled.

    I may be wrong, but if I put only --enable=style there are also warning messages appearing in the output. Maybe I get something wrong there...?

    regards

    frithjofh

     
  • frithjofh

    frithjofh - 2015-03-20

    hello again,

    another issue I observed is that i get a missing include message when I enable only "missingInclude" check, but it states the severity "information".

    And I get the same message with the same severity when I only enable "information" check... (scanning the same code)

    I think I don't understand the relation of enabled checks and resulting messages/severities. Does the information check bundle unused function check and missing includes check?

    Another issue i observe is that setting the -j option to a value higher than 1 disables the information check too. At least I get no information messages anymore, and neither any missing includes messages. As to now I think the manual only states that the unused functions check gets disabled...

    By the way: I think there are 6 severities, right? How many ID's are there, and how do they correlate with the severities?

     
  • Alexander Mai

    Alexander Mai - 2015-03-23

    --errorlist gives you a list of all messages or checks.

     
    • frithjofh

      frithjofh - 2015-03-24

      oh, thanks, I overlooked that option... I will have a look at it, that should give an answer to one of my questions already. Thanks again.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.