Thanks! I hope we have fixed this. I can reproduce the false positive with cppcheck-2.0 but I can't reproduce with cppcheck HEAD. cppcheck-2.2 will be released soon.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Cppcheck-2.1
It reports "style/knownConditionTrueFalse: Condition '!filesSizeMap.empty()' is always false"
Last edit: pokopa2803 2020-09-30
Thanks! I hope we have fixed this. I can reproduce the false positive with cppcheck-2.0 but I can't reproduce with cppcheck HEAD. cppcheck-2.2 will be released soon.