Menu

Cppcheck x64 1.76.1

2016-11-23
2016-11-27
  • Roee Bachar

    Roee Bachar - 2016-11-23

    Version: Cppcheck x64 1.76.1
    IDE: Code::Block 16.01
    OS: Windows 7 x64

    I'm trying to open CppCheck error / warning in Code::Block (file, line) from CppCheck GUI (Not with Code::Blocks plugin).
    The following command works great at cmd.exe:
    "C:/Program Files (x86)/CodeBlocks/codeblocks.exe" --file=C:\xxx\xxx\xx.cpp:19

    While at Cppcheck - Preferences - Applications with the following parameters it fails:
    Name: CodeBlocks
    Executable: "C:/Program Files (x86)/CodeBlocks/codeblocks.exe"
    Parameters: --file=(file):(line)

    What am I missing?

     
  • Daniel Marjamäki

    I do not see why it does not work.

    wild guess.. does C:\xxx\xxx\xx.cpp have any spaces? I guess not.

    If you want to take a look at our code please do..
    https://github.com/danmar/cppcheck/blob/master/gui/resultstree.cpp#L731

    If you have a Qt dev environment setup you could step..

     
  • Roee Bachar

    Roee Bachar - 2016-11-27

    Hi Daniel and thanks for the fast response.

    Today I had the time to download Qt environment and debug the code.
    I found that if I comment out the following line it works excellent for both Notepad++ and Codeblocks (It jumps to the correct file and line), Notepad also works as expected (Opens the correct file).

    https://github.com/danmar/cppcheck/blob/master/gui/resultstree.cpp#L678

    If you can update the code (commenting out the line) in your next release it will be great.

    Regards,
    Roee

     

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.