After inspecting the working and non-working solutions I've discovered that some of them were encoded as UTF-8-BOM and others without BOM and the absent byte order mark seems to break the parser.
Both attached files were once created by Visual Studio, I've just removed the included projects.
After upgrading Cppcheck from v2.6 to v2.7 some of my (unchanged) solution files can no longer be read and generate the following error:
After inspecting the working and non-working solutions I've discovered that some of them were encoded as UTF-8-BOM and others without BOM and the absent byte order mark seems to break the parser.
Both attached files were once created by Visual Studio, I've just removed the included projects.
Thanks! I have fixed this with https://github.com/danmar/cppcheck/commit/cfe23927097b64bc8ecaf702eaa0212d0a7e5c6f
If there will be a fix release I think this fix could be included in that.
If you want to try it you can download the nightly build. https://github.com/danmar/cppcheck/actions/workflows/release-windows.yml
Thanks for the fix!
I've just tested it with the nightly build #676 and it worked as expected.