Menu

#6 "Cppcheck error occured" for larger projects

1.0
closed
Gres
None
2015-07-13
2015-07-07
No

For larger projects, the arguments passed to process_.start (binary, arguments) become so long that process fails to start.
Only "Cppcheck error occured" is shown in "General Messages".
The cause of this is the long list of fileCheckQueue_ and includePaths

As a resolution I would suggest to put include paths in a separate temp file and pass its name to cppcheck.exe using --includes-file=<file> parameter.
List of files to be checked can be passed using --file-list=<file> (or --file-list=- and standard input).

Discussion

  • Gres

    Gres - 2015-07-07

    Hi!
    Looks like a solution for full project checks. Thanks.
    I'll think about alternative ones and fix it asap.

     
  • Gres

    Gres - 2015-07-12

    Fixed as you said. I'll publish it with next qtc release.
    For now i've attached current prebuilt versions.

     
  • Gres

    Gres - 2015-07-12
    • status: open --> closed
     
  • Anonymous

    Anonymous - 2015-07-13

    Hi! Thank you for quick implementation.
    I have confirmed that the solution works properly on a test project.

     

Log in to post a comment.