Pass the project object when generating the cppcheck command line