VA_X.dll file version 10.9.2237.0 built 2017.10.03
DevEnv.exe version 14.0.25420.1 Professional
msenv.dll version 14.0.25425.1
Comctl32.dll version 6.10.7601.18837
Windows 7 6.1 Build 7601 Service Pack 1
8 processors (x86-64, WOW64)
Language info: 1252, 0x409
Given the code:
#include <vector>
class tester : public std::vector<int>
{
public:
int something()
{
if (size() > 0)
return 1;
return 0;
}
};
Code inspection will say to check emptiness with empty() instead of size(), producing the following code:
#include <vector>
class tester : public std::vector<int>
{
public:
int something()
{
if (!size->empty())
return 1;
return 0;
}
};
Expected results:
#include <vector>
class tester : public std::vector<int>
{
public:
int something()
{
if (!empty())
return 1;
return 0;
}
};