I think this would be a great tool for Arduino programmers. By including .ino (with the same parameters as .cpp) this would be a perfect tool for all Arduino programmers. It is possible to use the tool today if you rename your arduino program to .cpp (but then it would not work in arduino ide). So adding .ino to the included filetypes would make it possible to use on the Arduino program directory's.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there already a cfg file for Arduino, so that cppcheck can improve the results by adding Arduino types/functions/libraries in your cppcheck project?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think this would be a great tool for Arduino programmers. By including .ino (with the same parameters as .cpp) this would be a perfect tool for all Arduino programmers. It is possible to use the tool today if you rename your arduino program to .cpp (but then it would not work in arduino ide). So adding .ino to the included filetypes would make it possible to use on the Arduino program directory's.
I am skeptic. I don't know arduino but it does not use ISO C++, does it?
Renaming the files to cpp sounds clumpsy. You can tell cppcheck to check all ino files in "some-folder" with:
you could also use --file-list to check all ino files in multiple directories:
This is useful - I have been doing it the hard-way, copying .ino to cpp etc, it gives useful guidance for programming.
Thanks
Is there already a cfg file for Arduino, so that cppcheck can improve the results by adding Arduino types/functions/libraries in your cppcheck project?