I am getting a similar false-positive in version 2.7 on Windows x64: if (someInt >= 0) { myStdVector.erase(myStdVector.begin() + someInt); } Cppcheck 2.7 reports: Iterator 'myStdVector.begin()+someInt' from different container 'myStdVector' are used together.
Patrice, Thanks for letting me know that the addRule statements come from Word documents...
Apparently, chmProcessor calls upon Microsoft Word to convert the Word document sections...