Menu

How can we check cppcheck Analyzed complete code

chaitanya
2021-06-16
2021-06-26
  • chaitanya

    chaitanya - 2021-06-16

    Hi Team
    we want to import our cppcheck results to sonarqube. we installed sonarcxx plugin in sonarqube and able to display cppcheck results. But i have a doubt when we checked with cppcheck xml file we found the error message last line in xml report file. what is this error message mean, do i need to take any action on this?
    we used cppcheck --xml-version=2 . 2> report.xml this command to generate .xml file.
    we are using cppcheck -1.63. we need your advice to resolve.

    <error id="toomanyconfigs" severity="information" msg="Too many #ifdef configurations - cppcheck only checks 12 configurations. Use --force to check all configurations. For more details, use --enable=information." verbose="The checking of the file will be interrupted because there are too many #ifdef configurations. Checking of all #ifdef configurations can be forced by --force command line option or from GUI preferences. However that may increase the checking time. For more details, use --enable=information."></error>

    Sonar output:

     
  • Daniel Marjamäki

    cppcheck -1.63

    That is very old , from 2014, you should really upgrade.

    Too many #ifdef configurations - cppcheck only checks 12 configurations.

    That is not a huge problem. Personally I would wonder why there are 12 configurations.. do you actually use all those configurations.. if you use all those then --force would be a good idea, if you don't use them maybe it would be best to configure the analysis a bit better.

     
    • Michael

      Michael - 2021-06-16

      Hi Daniel,
      chaitanya is working on the same project as I do. We use version 1.63 because there is no newer build for AIX and we are unable to build a newer version as described here: https://sourceforge.net/p/cppcheck/discussion/general/thread/8c4d149fe5/

       
      • Daniel Marjamäki

        ok let's try to solve that AIX issue. I would be very interested to know why it doesn't work on AIX. I guess it would be much easier if I could somehow reproduce your problems.. but I don't see how I can test AIX. If you have a suggestion..

         

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.