With the following code i have used --enable=all , --enable= warning but still not detecting the infinite loop. #include <iostream> using namespace std; // starting main int main() { cout << "hello in test of cpp "; for(int i = 0; i<10 ; i++ ){ cout << "in for loop"; } for(int j = 0; j<10 ; ){ cout << "in infinite for loop"; } switch(k){ case 1:{ cout << "hello"; break; } case 2:{ cout << "hello"; } } return 0; }
Hi, I am woundering why cppcheck do't allow to check infinite loops and fallthrough cases. Is their any way i can implement these checks in cppcheck.
Hi, I am woundering why cppcheck do't allow to check infinite loops and fallthrough cases. Is their any way i can implement these checks in cppcheck.