Comments (7)
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.
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.
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.
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.
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.
Original comment by [email protected]
on 1 Mar 2014 at 7:26
- Changed state: Started
- Added labels: Milestone-1.0.0
from cppcheclipse.
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)
- Cannot install cppcheclipse 0.98 on Eclipse Helios HOT 3
- cppcheckclipse_0.9.8.zip is ignored in dropins folder HOT 2
- NullPointerException running cppcheck HOT 4
- Not expanding variables ${name} HOT 1
- cppcheclipse uses file names on command-line (instead of from file with --file-list) which limits the amount of files that can be used as input HOT 12
- Errors disappear when compiling multiple projects HOT 1
- File not included in the Problems pane HOT 6
- Add suppressions for entire directories HOT 3
- cppcheclipse produce no output in the problems tab HOT 4
- can't configure wrapper script for cppcheck in preferences HOT 3
- cppcheclipse fails to check when C++ 03 is specified. HOT 4
- Could not initialize cppcheck with Eclipse Kepler, OSX, SUbversion HOT 5
- Error reading filename of appendages HOT 1
- cppcheck option not showing in Eclipse->P HOT 2
- template flag is hard-coded, can't change to 'gcc' HOT 2
- parse error, not problems reported HOT 3
- Creating xml output file doesn't work HOT 1
- Source files and paths not displaying HOT 4
- Null Pointer For Non-Existent Path
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cppcheclipse.