"Cppcheck error occured" for larger projects
Qt Creator Cppcheck integration plugin
Brought to you by:
onemoregres
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).
Hi!
Looks like a solution for full project checks. Thanks.
I'll think about alternative ones and fix it asap.
Fixed as you said. I'll publish it with next qtc release.
For now i've attached current prebuilt versions.
Hi! Thank you for quick implementation.
I have confirmed that the solution works properly on a test project.