Menu

Visual Studio project not parsed correctly wen using win32 instead of Win32

2025-01-10
2025-01-17
  • Emiel Estiévenart

    I discoverd this when trying to run my Cppcheck targets via visual code. This forces me to use the CmakePresets.json architecture field. This doesn't accept Win32. Only win32 is allowed.
    After this, the resulting project is nearly identical, but Cppcheck doesn't find any sources anymore.

    win32 is also accepted as a parameter for cmake -A. After configuring with -A win32 instead of -A Win32, the cppcheck targets no longer work for me because Cppcheck doesn't find any sources in the projects anymore.
    I think this is something missing in Cppcheck.

     
  • Daniel Marjamäki

    would it be possible to provide a small minimal example project?

    it's not really clear to me if you integrated cppcheck into cmake directly or if you export a compile commands or if you generate some project file with cmake and use --project..

    I have no idea when this can be fixed. Do you think you could fix and open a github pull request?

     
  • Emiel Estiévenart

    Hi,
    Yes, I will provide an example in the coming days on a github repo. Please check here again soon for the link.

    I edited the source code of Cppcheck already and got it working again. I'll look into creating a pull request.
    Regards

     

    Last edit: Emiel Estiévenart 2025-01-17

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.