Menu

Eclipse integration broken

2023-06-12
2023-12-22
  • Thomas Arnbjerg

    Thomas Arnbjerg - 2023-06-12

    The display of the message:
    'cppcheck: Windows 64-bit binaries currently default to the 'win64' platform. Starting with Cppcheck 2.13 they will default to 'native' instead. Please specify '--platform=win64' explicitly if you rely on this.'
    - breaks the integration with eclipse. The CppCheclipse plug-in requires XML output and fails to parse the analysis results due to this message. There is no workable way to add the -platform argument to the invocation of cppcheck in cppcheclipse.

    Any suggestions?

     
  • CHR

    CHR - 2023-06-12

    Probably the XML flag needs to also be checked in cmdlineparser.cpp:
    if (SHOW_DEF_PLATFORM_MSG && default_platform && !mSettings.quiet)

     
  • Thomas Arnbjerg

    Thomas Arnbjerg - 2023-12-22

    CppCheck version 2.9 can be used. Does not write illegal XML to the console.

     
    • Daniel Marjamäki

      I assume the error is written to stdout .. it seems unfortunate if plugins read and parse stdout.. and it also seems unfortunate if the platform can't be configured in cppcheclipse. :-(

      we write this information so users will have a chance to adjust their scripts. so there is good reasons to write it.

       

      Last edit: Daniel Marjamäki 2023-12-22
      • Daniel Marjamäki

        Starting with Cppcheck 2.13 they will default to 'native' instead.

        Cppcheck 2.13 will be released in couple of days.

         

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.