User forums > Nightly builds

The 04 September 2010 build (6570) is out.

<< < (4/5) > >>

eckard_klotz:
Hello Everybody.

Especialy to Morten: sory for my late reply.


--- Quote ---
--- Quote ---Has anybody an idea why the cppcheck-project is able to activate the 'find by click' feature I described (and why my project is not)?
--- End quote ---
No, this works for me. Can you send a stripped sample project where it does not? Is it probably Makefile based (although this still should work)?!

--- End quote ---


I added a special test-project as zip-file. It contains 2 simple sources in the src-folder and several code::blocks projects in different folder-levels. If I activate the projects in the sub-folder "CppCheck\CppCheck\prj" or in the sub-folder "CppCheck\CppCheck\prj\CppCheck"  I'm not able to find the location associated to the cppcheck-message by click. The other 2 projects are able to find the location by click. Could it be path-problem?

Best Regards,
                    Eckard Klotz.

killerbot:
I have downloaded, I will try to have a look at it this week.

killerbot:
I checked it.
It is not a CB issue, it seems it is an issue in cppcheck it self.

This is the result of calling cppcheck manually on the command line :

--- Code: ---ldco@linux-jyub:~/Projects/TryOuts/Test_CppCheck/CppCheck/CppCheck/prj> cppcheck --verbose --all --style ../../src/test.cpp
Checking ../../src/test.cpp...
[src/test.cpp:7]: (style) Unused variable: ReturnValue
ldco@linux-jyub:~/Projects/TryOuts/Test_CppCheck/CppCheck/CppCheck/prj>

--- End code ---
As you can see : cppcheck is giving back an incorrect path  : [src/test.cpp:7]

Similar when we go even one level deeper :

--- Code: ---ldco@linux-jyub:~/Projects/TryOuts/Test_CppCheck/CppCheck/CppCheck/prj/CppCheck> cppcheck --verbose --all --style ../../../src/test.cpp
Checking ../../../src/test.cpp...
[../src/test.cpp:7]: (style) Unused variable: ReturnValue
ldco@linux-jyub:~/Projects/TryOuts/Test_CppCheck/CppCheck/CppCheck/prj/CppCheck>

--- End code ---

Basically it boils down to : when the directory where cppcheck is invoked is at a deeper level then the sources to check, things start to go wrong.
The first 2 cases in your example zip file were 1 level higher, or at the same level


--- Code: ---ldco@linux-jyub:~/Projects/TryOuts/Test_CppCheck/CppCheck> cppcheck --verbose --all --style ./src/test.cpp
Checking ./src/test.cpp...
[./src/test.cpp:7]: (style) Unused variable: ReturnValue

--- End code ---


--- Code: ---ldco@linux-jyub:~/Projects/TryOuts/Test_CppCheck/CppCheck/CppCheck> cppcheck --verbose --all --style ../src/test.cpp
Checking ../src/test.cpp...
[../src/test.cpp:7]: (style) Unused variable: ReturnValue

--- End code ---


created a bug report for it with cppcheck : https://sourceforge.net/apps/trac/cppcheck/ticket/2059

eckard_klotz:
Hello Killerbot.

Thanks for your fast checking.

Best Regards,
                   Eckard Klotz.

killerbot:
and more good news, the guys of cppcheck fixed the bug. So it will be available in cppcheck 1.45


--- Quote ---Version 1.45 is planned to be released on October 10th

--- End quote ---

So we just have to wait a few more weeks, of you can get their sources out of git, and compile it yourself ...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version