Menu

Adding Arduino's *.ino to filetypes

2016-04-07
2024-01-24
  • Jonas Medin

    Jonas Medin - 2016-04-07

    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.

     
  • Daniel Marjamäki

    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:

    cppcheck --enable=style some-folder/*.ino
    

    you could also use --file-list to check all ino files in multiple directories:

       find -name \*.ino > ino-files.txt
       cppcheck --enable=style --file-list=ino-files.txt
    
     
  • Mike H

    Mike H - 2023-02-25

    This is useful - I have been doing it the hard-way, copying .ino to cpp etc, it gives useful guidance for programming.
    Thanks

     
  • Volker Dirr

    Volker Dirr - 2024-01-24

    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?

     

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.