Menu

cppcheck cache

2020-05-19
2020-05-20
  • john borland

    john borland - 2020-05-19

    I was thinking a cppcheck cache in the way that ccache ( https://ccache.dev/ ) works for compliers. Where it would check the cppcheck argumanets used, the files location and timestamp or hash of a file and see if it needs to run again on it. I had attemped a bash version a few years back one weekend when my wife and kids where out of town. I just stumbbled appon it when I was cleaning up some diskspace. I went a head and posted my source to git hub a few minutes ago https://github.com/amishscientist/cppcheckcache I'm pretty sure it's in a broken state. I'm sure an interanl approuch could do far more than my naive approache could with fewer edge cases. Who knows it might even be a feature people are willing to kick start. I know I would be willing to put some money for the feature.

     
  • Daniel Marjamäki

    that is more or less what --cppcheck-build-dir gives you. After preprocessing, the hash is compared. If the hash match the old result then the file is not rechecked.

     
  • john borland

    john borland - 2020-05-20

    Thanks for being so kind to me in your reposes. It has been sometime since I have gone through the manual. I should probably go through it again and see what other gems I have been missing out on for many years.

     

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.