Fixes #13956: VisualStudio Importer: Define UNICODE=1;_UNICODE=1 if CharacterSet is Unicode#7586
Conversation
… Unicode These defines are set by msbuild if CharacterSet is set to Unicode
|
This should also get a ticket as well as Python tests. On a side note IIRC the current |
I am not sure why a python test would be needed.. I would be fine with a test in testimportproject.cpp but a ticket would be nice. Do you have a trac account? Should I create this ticket? |
Because it requires a project which contains sources which depend on that define. Generating files in the unit tests should be avoided. And it would be much easier to do in the Python tests. |
imho it does not require any physical files. We can write a TestImportProject test that contains a minimal vcxproj xmldata. |
|
Ok I can write a |
You can just make the test fixture it a |
|
While writing tests I realized that one could set different |
9a3e9e7 to
7d6ef56
Compare
Not going into how that should go away. Something for later. I now remember what is flawed here and why I wanted a Python test. It is the handling of the And I also mixed up the (implicit) |
|
I think https://trac.cppcheck.net/ticket/13251 and https://trac.cppcheck.net/ticket/13262 are mostly covering this. |
|
Ok. So when this is something for later this MR is complete? (From my side it is) |
|
a ticket for this PR is still missing right? The PR title should point at the ticket. If you would create a htpasswd hash and send it to me I will make sure that you will get a trac account. |
|
@autoantwort as far as I see you have not been added to the AUTHORS file. what name do you want that I add there? |
You can add |
These defines are set by msbuild if CharacterSet is set to Unicode.
TestCppCheckProject.zip
This test project compiles fine but the current cppcheck version reports:
with this PR
main.cpp