Menu

Adding rules that takes a parameter to Cppcheck

2022-09-09
2022-09-10
  • Enes YILDIZ

    Enes YILDIZ - 2022-09-09

    I can add rules by writing to an xml file like described in the "Writing Rules" document but i would like to add rules like: Array 'a[10]' accessed at index 10, which is out of bounds. Which decides the "10" in the code. Thanks in advance.

     
  • Daniel Marjamäki

    the xml format rules is a very old feature. I am not sure how much longer we will keep that. I strongly recommend using --addon instead.

     

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.