I am trying to use cppcheck plugin with visual studio 2017. However when I select tools/Check current project with cppcheck, it always says "Object reference not set to an instance of an object." Any suggestions?
I am using
Thanks.
For me, the problem was resolved after I edited the projects and checked "Enable Code Analysis on Build". I was then able to uncheck this option, but it leaves
<RunCodeAnalysis>false</RunCodeAnalysis>
in the vcxproj file, which seems to resolve the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With