Hi,
I have two problem confused me
1)I have a large cmake project and I check the whole project with compile_commands.json. As we know,cppcheck will scan the whole files and give response.But it wasn't happened in my test.It seems that cppcheck just checked a half of the project,or just check 20%,I couldn't give exact evaluation.But I'm sure that the file in my module didn't give any result eventhough there were some obviously mistake.
2)Null Pointers are annoying and cppcheck also gives us remind.But in this situation,cppcheck didn't give response.
Namely, when I declare a pointer then assign null in constructor and use it in the another member fuction directly,cppcheck didn't give any response.In case the first problem,I did this check in a small test project.
by the way I use cppcheck 1.87
Last edit: Wanglongyu 2019-06-06
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have two problem confused me
1)I have a large cmake project and I check the whole project with compile_commands.json. As we know,cppcheck will scan the whole files and give response.But it wasn't happened in my test.It seems that cppcheck just checked a half of the project,or just check 20%,I couldn't give exact evaluation.But I'm sure that the file in my module didn't give any result eventhough there were some obviously mistake.
2)Null Pointers are annoying and cppcheck also gives us remind.But in this situation,cppcheck didn't give response.
Namely, when I declare a pointer then assign null in constructor and use it in the another member fuction directly,cppcheck didn't give any response.In case the first problem,I did this check in a small test project.
by the way I use cppcheck 1.87
Last edit: Wanglongyu 2019-06-06