Uh oh!
There was an error while loading. Please reload this page.
fixed #13721 - Add support for Visual Studio 2026 .slnx project files - #8355
Conversation
IOBYTE
commented
Mar 19, 2026
The selfcheck fails because of unused functions that have nothing to do with this PR. There appear to be suppressions for these errors but I don't know where they come from or how to fix them. |
chrchr-github
commented
Mar 23, 2026
The suppressions seem to come from here: https://github.com/danmar/cppcheck/blob/5bec5624f677636d38803d3a9fc152bcc5923fb3/.github/workflows/selfcheck.yml#L124 Not sure why we keep those functions around, if they are really unused. @firewave |
danmar
left a comment
There was a problem hiding this comment.
I don't see any test. So well some basic test would be nice..
chrchr-github
commented
Mar 27, 2026
The functions are used by the GUI. |
IOBYTE
commented
Mar 27, 2026
I tried adding slnx to the first test in test/cli/project_test.py and I get this: Is this the test you are referring to? Is this the proper way to run this test? Are these tests run by CI? Should I be looking elsewhere? My original PR added test/cli/helloworld2 but it was rejected because it duplicated 2 files. The current helloworld test only tests cppcheck gui projects with .sln project files. It should also check .vcxproj files but doesn't. .slnx files should also be added but these changes would require changes to helloworld_test.py and I don't know python. There are probably other tests that would need changes. |
IOBYTE
commented
Mar 27, 2026
Hopefully this is enough tests. |
IOBYTE
commented
Mar 28, 2026
I just noticed something interesting. Visual Studio created slnx files do not have the xml version on the first line but cmake generated files do. Visual Studio doesn't seem to care. |
firewave
commented
Mar 29, 2026
I gave it a quick look and it seems okay but I can't really hold a thought right now so I will give it a closer look later.
The XML header is completely optional. But we need to be able to handle BOMs. |
firewave
commented
Mar 29, 2026
If we currently do not at all then that should be a follow-up with a separate ticket. |
firewave
commented
Mar 29, 2026
Yes, that is rather awkward and I thought it is okay for the time being. But then we started changing the project import any other week. Still need to give the |
Uh oh!
There was an error while loading. Please reload this page.
| bool found = false; | ||
| std::vector<SharedItemsProject> sharedItemsProjects; | ||
| for (const tinyxml2::XMLElement* node = rootnode->FirstChildElement(); node; node = node->NextSiblingElement()) { |
There was a problem hiding this comment.
I think this is skipping projects in folders. At least that's what I'm seeing here.
There was a problem hiding this comment.
Can you try this patch?
There was a problem hiding this comment.
There is a ticket for the folder problem here: https://trac.cppcheck.net/ticket/14880
There was a problem hiding this comment.
I did a quick test of the PR with my solution and it seems to work.



No description provided.