gicho / cppcheclipse

Automatically exported from code.google.com/p/cppcheclipse
0 stars 0 forks source link

Does not work with linked source folders #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If I run cppcheck on a linked source folder or if I run cppcheck on a cpp file 
in a linked folder it prints the following message:

Command line: C:\CodingXP\cppcheck\cppcheck.exe --template 
{file};{line};{severity};{id};{message} -j 1 
vision\acquisition\AsyncVideoCaptureDevice.cpp
cppcheck: No C or C++ source files found.

The file AsyncVideoCaptureDevice.cpp is located in a linked folder. That means, 
I have a linked resource (Preferences -> Workspace -> Linked Resources) Name: 
cetoni_repository Value: D:\CodingXP\cetoni_repository

In the eclipse project I linked to the folder 
cetoni_repository\usl\env\qt\vision. If I right click onto the linked folder 
and select "Properties", I can see the following:

Path: /QtVision/vision
Type: Linked Folder
Location: cetoni_repository\usl\env\qt\vision
Resolved Location: D:\CodingXP\cetoni_repository\usl\env\qt\vision

The plugin passes the relative project path 
vision\acquisition\AsyncVideoCaptureDevice.cpp to cppcheck instead of the 
resolved path
D:\CodingXP\cetoni_repository\usl\env\qt\vision\acquisition\AsyncVideoCaptureDev
ice.cpp

Original issue reported on code.google.com by uwe_kind...@web.de on 21 Jun 2010 at 12:44

GoogleCodeExporter commented 9 years ago
Thanks for your report, I could reproduce the problem and will include a fix in 
the upcoming version.

Original comment by konra...@gmx.de on 24 Jun 2010 at 2:35

GoogleCodeExporter commented 9 years ago

Original comment by konra...@gmx.de on 24 Jun 2010 at 2:38

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r198.

Original comment by konra...@gmx.de on 24 Jun 2010 at 5:21