Git Product home page Git Product logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Additionally, changes to the workspace include directories settings are not 
propogated to cppcheclipse until the "Follow user-defined includes" is 
unchecked applied and then checked again.

Original comment by [email protected] on 13 Feb 2013 at 11:52

from cppcheclipse.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
I cannot reproduce. I tried to include a linked folder as include directory and 
it was correctly resolved (i.e. the resolved link was given to cppcheck). Can 
you give the exact pathnames and what exactly you linked there as a path?

For the example above I would need to know what 
/home/timowest/workspace_indigo_60870/i870_14/include/ exactly is and where it 
could be found in the filesystem. Thanks.

Original comment by [email protected] on 2 Jan 2014 at 5:45

from cppcheclipse.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Also changes to the include directories become effective immediately for me. 
Please include detailed steps how to reproduce this issue as well.

Original comment by [email protected] on 2 Jan 2014 at 5:51

from cppcheclipse.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Addressing your comments in order, I did not use a linked folder, I added a 
workspace path to the Paths/Includes dialog for the CDT the exact path name I 
used was "/i870_s14/include" the path you see in the error 
/home/timowest/workspace_indigo_60870 is the top level path to the workspace. 

The i870_s14 "project" is not stored in the workspace directory as it is 
imported as an external makefile project.

I was able to recreate the issue using these steps, hopefully this is helpful

0. start eclipse
1. create new workspace at $HOME/workspace_test_cppcheck
2. add two projects to workspace using the CDT "Add Makefile project" from the 
directory $HOME/test_cpp_check/i870_14 and $HOME/test_cpp_check/i870_s14 
3. Run cppcheck with default settings resulting command line

Command line: /usr/bin/cppcheck 
--template={file};{line};{severity};{id};{message} -j 1 <snipped list of files>

4. Window->Preferences->C/C++->cppcheklipse->Settings set follow user defined 
includes to checked. Apply 

5. Go to i870_s14 project settings, set ccpcheclipse->Advanced Settings to 
"--check-config" 

6. Run cppcheck. command line results below
Command line: /usr/bin/cppcheck 
--template={file};{line};{severity};{id};{message} -j 1 --std=c++11 
--check-config <snipped list of files>

7. Project settings->C/C++ General->Paths and Symbols->Includes->Add
add to all configurations
add to all languages
is a workspace path, are all set to true, click workspace and select 
/i870_14/include (no 's' in this path) -> Apply changes

8. Run cppcheck on the i870_s14 project, resulting command line below. Note the 
workspace relative path has been concatenated with the actual workspace path, 
which is not the actual location of the project. 

Command line: /usr/bin/cppcheck 
--template={file};{line};{severity};{id};{message} -j 1 --std=c++11 -I 
/home/timowest/workspace_test_cppcheck/i870_14/include --check-config <snipped 
list of files>
cppcheck: warning: Couldn't find path given by -I 
'/home/timowest/workspace_test_cppcheck/i870_14/include/'

The issue about changes not being propogated might have been bogus, I might 
have been incorrectly assuming that the cppcheck console was erased on every 
run 

Original comment by [email protected] on 6 Jan 2014 at 9:44

from cppcheclipse.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
I could reproduce and will come up with a fix for the next version.

Original comment by [email protected] on 1 Mar 2014 at 7:26

from cppcheclipse.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024

Original comment by [email protected] on 1 Mar 2014 at 7:26

  • Changed state: Started
  • Added labels: Milestone-1.0.0

from cppcheclipse.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
This issue was closed by revision r306.

Original comment by [email protected] on 1 Mar 2014 at 8:00

  • Changed state: Fixed

from cppcheclipse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.