Menu

Please tell me about the uses or working of cppcheck after including the header files for analysis

Dinesh
2015-12-09
2015-12-14
  • Dinesh

    Dinesh - 2015-12-09

    Hi ,
    Please tell me the differences with/without header files during the cppcheck's analysis.
    Actually i am integrating cppcheck's report with sonar, will sonar's dashboard will contain any differences?

    After including header files, it took 5 days(approx) complete the analysis, even though i used -j 4 and max-config to 2 options.
    Please help.

    thanks,
    Dinesh

     
  • Dinesh

    Dinesh - 2015-12-09

    And confused that, the LOC has reduced after including header files for analysis. and i could see the functions , classes are reduced to few numbers.

    Does cppcheck errors on header files? if yes, what rules are applied on it? where can i find this info, thw rules that are associated with header files?

    thanks,
    Dinesh

     
  • Alexander Mai

    Alexander Mai - 2015-12-14

    At best run cppcheck on a complete tree (directory) - see http://cppcheck.sourceforge.net/manual.html#idp258480. cppcheck will examine all .cpp/.c and included headers. The same rules apply for header and source files.
    LOC, number of classes are not output of cppcheck, so I cannot tell anything about that.

     

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.