ipodipad / cppcheclipse Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/cppcheclipse
Automatically exported from code.google.com/p/cppcheclipse
The proxy settings configured in Eclipse (General->Network Connections) should
be considered for the update check.
Original issue reported on code.google.com by [email protected]
on 9 Apr 2011 at 7:50
"What steps will reproduce the problem?"
Run cppcheck on a source file that contains errors, warnings, and style issues.
"What is the expected output? What do you see instead?"
The application should report errors, warnings, and style issues in the
Problems Tab of Eclipse. However, only errors are being reported.
For Reference, I ran the CppCheck 1.4 GUI where it displayed all three
types of issues.
"What version of the product are you using? On what operating system?"
cppcheck = version 0.94
Eclipse: Galileo CDT, version 3.5
OS: Windows XP
Original issue reported on code.google.com by [email protected]
on 4 Feb 2010 at 4:00
What steps will reproduce the problem?
1. Use cppcheck 1.46 and go to the preferences::cppcheclpise::problems tab,
the are the page remains blank, because cppchecker seg faults.
Using cppcheclipse 9.6 (any?)
See https://sourceforge.net/apps/trac/cppcheck/ticket/2292 and
https://sourceforge.net/apps/trac/cppcheck/ticket/2253
This has been fixed in cppchecker 1.46.1
Original issue reported on code.google.com by [email protected]
on 13 Dec 2010 at 9:04
What steps will reproduce the problem?
1.run cppcheck on a C++ class with a template constructor like
1 | // File A.h
2 | class A
3 | {
4 | public:
5 | template<typename T>
6 | A(T arg) {}
7 | };
It fails with the following message:
src/A.h;5;debug;debug;simplifyTemplates: bailing out
Versions
cppcheclipse: 0.9.6
cppcheck: 1.45
Eclipse: Helios Service Release 1 (Build id: 20100917-0705)
Java: 1.5.0_06-b05
Linux: 2.6.20-1.2316.fc5smp #1 SMP Fri Apr 27 20:34:56 EDT 2007 i686
i686 i386 GNU/Linux (Fedora)
Original issue reported on code.google.com by [email protected]
on 23 Nov 2010 at 2:46
Support the standards c99, posix and none.
Original issue reported on code.google.com by [email protected]
on 1 Nov 2011 at 6:22
Found a Problem with relative paths in the command line:
Error checking flexo_main.c
Could not run cppcheck
Error executing 'C:\proj\cppcheck.exe --template
{file};{line};{severity};{id};{message} -j 1 --verbose --force
trunk\lib\c\stvxlib\flexo\flexo_main.c' due to error: Process exited with an
error: 1(Exit value: 1)Maybe more information is available in the console view.
the path to the last file should be an absolute path !
Original issue reported on code.google.com by [email protected]
on 12 Jan 2011 at 4:30
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead? Please provide output
of the console view of cppcheclipse as well as the Eclipse error log.
What version of the cppcheclipse, cppcheck, Eclipse and Java are you using?
On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 23 Nov 2010 at 2:17
What steps will reproduce the problem?
1. Open Preferences
2. Brows to the folder cppcheck is installed
3. Enjoy the crash :)
What is the expected output? What do you see instead?
Loding of the program, crash
What version of the product are you using? On what operating system?
0.9, cppcheck 3.37 SLES 9, Eclipse 3.5
Please provide any additional information below.
No entry in the log file. Having trace messages would be nice to have!
Original issue reported on code.google.com by [email protected]
on 19 Oct 2009 at 8:56
please suggest
Original issue reported on code.google.com by [email protected]
on 17 May 2010 at 11:20
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 [email protected]
on 21 Jun 2010 at 12:44
cppcheck has the capability to suppress messages.
All contents of a file given as an argument of --supressions xxx.txt are
suppressed on output.
For better handling of the warnings and errors it would be fine to have this
feature, to suppress e.g. the missingInclude messages.
Suggestion:
- add switch and a text field for adding a suppression file name to the command
line.
or
- add a list of all available IDs (like in problems) and build a temporary
suppression file on the fly from the selected items and add it to the command
line.
for reference see http://cppcheck.sourceforge.net/manual.pdf Chapter 6.
Original issue reported on code.google.com by [email protected]
on 25 Mar 2011 at 4:31
When checking many files at once cppcheck exits with error 143 after some time.
When running the same command (c&p from eclipse console) manually cppcheck runs
through fine.
Output:
Could not run cppcheck
Error executing '/usr/bin/cppcheck --template
{file};{line};{severity};{id};{message} --enable=all <dozens of -I options and
many files>' due to error: Process exited with an error: 143(Exit value:
143)Maybe more information is available in the console view.
Tested with:
Eclipse 3.6
cppcheckeclipse 0.9.6
cppcheck 1.44 and 1.45
Java 1.6.0_22
ubuntu 10.10
Original issue reported on code.google.com by [email protected]
on 20 Oct 2010 at 12:56
Using latest delivered or trunk version of cppcheclipse and latest version of
Cppcheck.
My project is configured to use variables like ${gccIncludeLocation} that is
contributed by another plug-in. Upon running the cppcheck action, the included
is traited as invalid, stack trace provided:
java.net.URISyntaxException: Illegal character in opaque part at index 2:
C:\Program Files\Eclipse\eclipse\plugins\my.plugin\includes
at java.net.URI$Parser.fail(Unknown Source)
at java.net.URI$Parser.checkChars(Unknown Source)
at java.net.URI$Parser.parse(Unknown Source)
at java.net.URI.<init>(Unknown Source)
at
com.googlecode.cppcheclipse.ui.ToolchainSettings.getIncludes(ToolchainSettings.j
ava:167)
at
com.googlecode.cppcheclipse.ui.ToolchainSettings.getUserIncludes(ToolchainSettin
gs.java:91)
Patch provided that appears to fix the issue
Cheers
Francois
Original issue reported on code.google.com by [email protected]
on 14 Oct 2011 at 9:23
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead? Please provide output
of the console view of cppcheclipse as well as the Eclipse error log.
What version of the cppcheclipse, cppcheck, Eclipse and Java are you using?
On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 23 Nov 2010 at 2:17
What steps will reproduce the problem?
1. Set Cpp Check to run on build of LibProject
2. Build another project that depends on LibProject
What is the expected output? What do you see instead? Please provide output
of the console view of cppcheclipse as well as the Eclipse error log.
There is no console output, there is an error in a dialog box:
Errors occurred during the build.
Errors running builder 'cppcheck Project Builder' on project 'TestProject'.
Could not run cppcheck
Output Stream is closed
Could not run cppcheck
Output Stream is closed
I tried enabling --debug on cppcheck and the build hangs.
What version of the cppcheclipse, cppcheck, Eclipse and Java are you using?
cppcheclipse: 0.9.7.2001040922
Eclipse: Indigo
Java: OpenJDK Runtime Environment 1.6.0_23-b23
CppCheck 1.52
On what operating system?
Ubuntu 11.11
Please provide any additional information below.
Right clicking the project and running cppcheck works fine.
It seems to be a timing issue with access to the console during building.
Original issue reported on code.google.com by [email protected]
on 3 Jan 2012 at 3:46
What steps will reproduce the problem?
1. add an include directory using a variable e.g. ${HOME}
2. run cppcheck (Version 1.47) --> there is an -I ${HOME} entry in the call
3. breaks with error (include path not found)
Expected:
Expansion of variables to its value. e.g. ${HOME} --> /home/xxxx
Versions:
Eclipse IDE for C/C++ Developers
Version: Helios Service Release 2
Build id: 20110301-1815
cppcheclipse 0.9.6.201005161316 com.googlecode.cppcheclipse.feature.feature.group
Cppcheck 1.47
Original issue reported on code.google.com by [email protected]
on 25 Mar 2011 at 4:06
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead? Please provide output
of the console view of cppcheclipse as well as the Eclipse error log.
What version of the cppcheclipse, cppcheck, Eclipse and Java are you using?
On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 23 Nov 2010 at 2:17
In some views, the project properties for cppcheclipse are not displayed.
This is the case with the view "C/C++ Projects". If you select a project
there and go to properties, there won't be an entry for cppcheclipse. As
workaround select the same project from the View "Project Explorer". There
the cppcheclipse entry should appear within the properties.
Original issue reported on code.google.com by [email protected]
on 28 Apr 2010 at 11:29
plugin does not work in juno 4.2 and CDT 8.1.
doesnt even show in preferences menu.
Original issue reported on code.google.com by [email protected]
on 8 Jul 2012 at 8:30
While running cppcheck on a large number of fules (+-180), I get the following
error:
"Error checking src: Could not run cppcheck" in a message box.
There are no error messages from cppcheck. Running the same command on the
command line is successful. Also from within eclipse on source folder with less
files is ok.
My cppcheck is version 1.48. Attached you will find the java error log. All
other details are there.
Original issue reported on code.google.com by [email protected]
on 29 Apr 2011 at 2:06
Attachments:
What steps will reproduce the problem?
1. Install cppcheck application (into /usr/bin/cppcheck)
2. Install cppcheclipse
3. Configure plugin (set cppcheck path "/usr/bin/cppcheck"). Version in
dialog will updated to 1.43
4. Select "Run cppcheck" from project context menu.
What is the expected output?
Expexted to recieve check result
What do you see instead?
I see:
org.eclipse.core.runtime.CoreException
with following details:
Error checking myProject
Could not initialize cppcheck
Content is not allowed in trailing section.
What version of cppcheclipse, cppcheck and Eclipse are you using? On what
operating system?
cppcheclipse - 0.9.5.201002042253
cppcheck - 1.43
eclipse - 3.4.0
OS - Linux(openSuSe 11.2)
Please provide output of the console view for cppcheck as well as the
output of the Eclipse error.log
Executing '/usr/bin/cppcheck --version'
Cppcheck 1.43
Duration 218 ms.
Executing '/usr/bin/cppcheck --errorlist'
<?xml version="1.0"?>
<results><error id="autoVariables" severity="error" msg="Wrong assignment
of an auto-variable to an effective parameter of a function"/>
<error id="returnLocalVariable" severity="error" msg="Returning pointer to
local array variable"/>
<error id="returnReference" severity="error" msg="Returning reference to
auto variable"/>
<error id="returnTempReference" severity="error" msg="Returning reference
to temporary"/>
<error id="returnAutocstr" severity="error" msg="Returning pointer to auto
variable"/>
<error id="returnTempPointer" severity="error" msg="Returning pointer to
temporary"/>
<error id="arrayIndexOutOfBounds" severity="error" msg="Array index out of
bounds"/>
<error id="bufferAccessOutOfBounds" severity="error" msg="Buffer access
out-of-bounds: buffer"/>
<error id="strncatUsage" severity="style" msg="Dangerous usage of strncat.
Tip: the 3rd parameter means maximum number of characters to append"/>
<error id="outOfBounds" severity="error" msg="index is out of bounds"/>
<error id="sizeArgumentAsChar" severity="style" msg="The size argument is
given as a char constant"/>
<error id="terminateStrncpy" severity="style" msg="After a strncpy() the
buffer should be zero-terminated"/>
<error id="negativeIndex" severity="error" msg="Array index -1 is out of
bounds"/>
<error id="noConstructor" severity="style" msg="The class 'classname' has
no constructor. Member variables not initialized."/>
<error id="uninitVar" severity="style" msg="Member variable not initialized
in the constructor 'classname::varname'"/>
<error id="unusedPrivateFunction" severity="style" msg="Unused private
function 'classname::funcname'"/>
<error id="memsetClass" severity="error" msg="Using 'memfunc' on class"/>
<error id="memsetStruct" severity="error" msg="Using 'memfunc' on struct
that contains a 'std::classname'"/>
<error id="operatorEq" severity="style" msg="'operator=' should return
something"/>
<error id="virtualDestructor" severity="error" msg="Class Base which is
inherited by class Derived does not have a virtual destructor"/>
<error id="thisSubtraction" severity="style" msg="Suspicious pointer
subtraction"/>
<error id="operatorEqRetRefThis" severity="style" msg="'operator=' should
return reference to self"/>
<error id="functionConst" severity="style" msg="The function
'class::function' can be const"/>
<error id="dangerousFunctionmktemp" severity="style" msg="Found 'mktemp'.
You should use 'mkstemp' instead"/>
<error id="dangerousFunctiongets" severity="style" msg="Found 'gets'. You
should use 'fgets' instead"/>
<error id="dangerousFunctionscanf" severity="style" msg="Found 'scanf'. You
should use 'fgets' instead"/>
<error id="exceptThrowInDestructor" severity="style" msg="Throwing
exception in destructor"/>
<error id="exceptNew" severity="style" msg="Upon exception there is memory
leak: p"/>
<error id="exceptRealloc" severity="style" msg="Upon exception p becomes a
dead pointer"/>
<error id="exceptDeallocThrow" severity="error" msg="Throwing exception in
invalid state, p points at deallocated memory"/>
<error id="memleak" severity="error" msg="Memory leak: varname"/>
<error id="resourceLeak" severity="error" msg="Resource leak: varname"/>
<error id="deallocDealloc" severity="error" msg="Deallocating a deallocated
pointer: varname"/>
<error id="deallocuse" severity="error" msg="Dereferencing 'varname' after
it is deallocated / released"/>
<error id="mismatchSize" severity="error" msg="The given size sz is
mismatching"/>
<error id="mismatchAllocDealloc" severity="error" msg="Mismatching
allocation and deallocation: varname"/>
<error id="sprintfOverlappingData" severity="error" msg="Undefined
behaviour: varname is used wrong in call to sprintf or snprintf. Quote: If
copying takes place between objects that overlap as a result of a call to
sprintf() or snprintf(), the results are undefined."/>
<error id="udivError" severity="error" msg="Unsigned division. The result
will be wrong."/>
<error id="nullPointer" severity="error" msg="Possible null pointer
dereference: pointer"/>
<error id="uninitstring" severity="error" msg="Dangerous usage of 'varname'
(strncpy doesn't always 0-terminate it)"/>
<error id="uninitdata" severity="error" msg="Data is allocated but not
initialized: varname"/>
<error id="uninitvar" severity="error" msg="Uninitialized variable:
varname"/>
<error id="zerodiv" severity="error" msg="Division by zero"/>
<error id="wrongmathcall" severity="error" msg="Passing value to () leads
to undefined result"/>
<error id="fflushOnInputStream" severity="error" msg="fflush() called on
input stream "stdin" may result in undefined behaviour"/>
<error id="cstyleCast" severity="style" msg="C-style pointer casting"/>
<error id="redundantIfDelete0" severity="style" msg="Redundant condition.
It is safe to deallocate a NULL pointer"/>
<error id="redundantIfRemove" severity="style" msg="Redundant condition.
The remove function in the STL will not do anything if element doesn't
exist"/>
<error id="dangerousUsageStrtol" severity="error" msg="Invalid radix in
call to strtol or strtoul. Must be 0 or 2-36"/>
<error id="unusedStructMember" severity="style" msg="struct or union member
'structname::variable' is never used"/>
<error id="passedByValue" severity="style" msg="Function parameter
'parametername' is passed by value. It could be passed by reference
instead."/>
<error id="constStatement" severity="style" msg="Redundant code: Found a
statement that begins with type constant"/>
<error id="charArrayIndex" severity="style" msg="Warning - using char
variable as array index"/>
<error id="charBitOp" severity="style" msg="Warning - using char variable
in bit operation"/>
<error id="variableScope" severity="style" msg="The scope of the variable
varname can be reduced"/>
<error id="conditionAlwaysTrueFalse" severity="style" msg="Condition is
always true/false"/>
<error id="strPlusChar" severity="error" msg="Unusual pointer arithmetic"/>
<error id="emptyStringTest" severity="style" msg="Empty string test can be
simplified to "*varname == '\0'""/>
<error id="invalidIterator" severity="error" msg="Invalid iterator:
iterator"/>
<error id="iterators" severity="error" msg="Same iterator is used with both
container1 and container2"/>
<error id="mismatchingContainers" severity="error" msg="mismatching
containers"/>
<error id="eraseDereference" severity="error" msg="Dereferenced iterator
'iter' has been erased"/>
<error id="stlOutOfBounds" severity="error" msg="When i==foo.size(), foo[i]
is out of bounds"/>
<error id="erase" severity="error" msg="Dangerous iterator usage. After
erase the iterator is invalid so dereferencing it or comparing it with
another iterator is invalid."/>
<error id="invalidIterator" severity="error" msg="After
push_back|push_front|insert, the iterator 'iterator' may be invalid"/>
<error id="invalidPointer" severity="error" msg="Invalid pointer 'pointer'
after push_back / push_front"/>
<error id="stlBoundries" severity="error" msg="container range check should
use != and not < since the order of the pointers isn't guaranteed"/>
<error id="stlIfFind" severity="style" msg="Suspicious condition. The
result of find is an iterator, but it is not properly checked."/>
<error id="stlIfStrFind" severity="style" msg="Suspicious condition.
string::find will return 0 if the string is found at position 0. If this is
what you want to check then string::compare is a faster alternative because
it doesn't scan through the string."/>
<error id="unusedFunction" severity="style" msg="The function 'funcName' is
never used"/>
<error id="syntaxError" severity="error" msg="Invalid number of character (
) when these macros are defined: ''."/>
<error id="cppcheckError" severity="error" msg="### Internal error in
Cppcheck. Please report it."/>
</results>
cppcheck: No C or C++ source files found.
Duration 205 ms.
Original issue reported on code.google.com by [email protected]
on 14 May 2010 at 2:13
Sometimes it is necessary to pass additional include directories. I have
attached an example of why this is necessary and the different results are
found below. Basically if cppcheck can't find a header file that includes
a typedef it does not include that variable for check as uninitialized (I'm
not sure what else it would miss).
Executing '"C:\Program Files\Cppcheck\cppcheck.exe" --xml "-j 1"
--enable=style,possibleError --force
C:\ide-4.6-workspace\cppcheck_example\src\main.c'
<?xml version="1.0"?>
Checking C:\ide-4.6-workspace\cppcheck_example\src\main.c...
<results>
<error file="C:\ide-4.6-workspace\cppcheck_example\src\main.c" line="8"
id="unassignedVariable" severity="style" msg="Variable 'uninit_i32' is not
assigned a value"/>
<error file="C:\ide-4.6-workspace\cppcheck_example\src\main.c" line="12"
id="uninitvar" severity="error" msg="Uninitialized variable: uninit_i32"/>
</results>
Duration 110 ms.
Compared with calling it from console with the includes directory passed as
argument.
C:\ide-4.6-workspace\cppcheck_example>"C:\Program
Files\Cppcheck\cppcheck.exe" --force --enable=style,possibleError -I
includes src/main.c
Checking src\main.c...
[src\main.c:8]: (style) Variable 'uninit_i32' is not assigned a value
[src\main.c:8]: (style) Variable 'uninit_i32_header' is not assigned a value
[src\main.c:12]: (error) Uninitialized variable: uninit_i32
[src\main.c:15]: (error) Uninitialized variable: uninit_i32_header
Original issue reported on code.google.com by [email protected]
on 16 May 2010 at 11:31
Attachments:
What steps will reproduce the problem?
1. Eclipse project or workspace settings for cppcheclispe
2. Click on "check unused functions"
3. Right mouse click on project and select cppcheck
What is the expected output? What do you see instead? Please provide output
of the console view of cppcheclipse as well as the Eclipse error log.
Command line: /home/greenbba/cppcheck-1.46.1/cppcheck --template
{file};{line};{severity};{id};{message} --enable=unusedFunctions src/vmhd.cc ...
cppcheck: there is no --enable parameter with the name 'unusedFunctions'
cppcheck: error: could not find or open any of the paths given.
What version of the cppcheclipse, cppcheck, Eclipse and Java are you using?
On what operating system?
cppcheclipse 0.9.6
cppcheck 1.46.1
fedora eclipse platform 3.4.2
java version "1.6.0_0"
Please provide any additional information below.
Perhaps this is for cppcheck, but as a work around I tried cppcheck
commandline. It didn't report any unused functions. I don't see any detailed
documentation.
Original issue reported on code.google.com by [email protected]
on 5 Jan 2011 at 7:15
The --append option in cppcheck allows detection of some further issues. It
is especially useful for user-defined memory-allocation functions. So far
cppcheclipse has no simple way, to specify this option with valid files.
Original issue reported on code.google.com by [email protected]
on 15 May 2010 at 6:21
What steps will reproduce the problem?
1. Have a checked resource (like test.c) include a header (test.h) with a
error detected by cppcheck
2. Launch checking on test.c
3. Problem marker is set on the checked resource not on the header (but
with the location of the header)
What is the expected output? What do you see instead?
As in the error tag in the results (see console), the file is correct, the
marker should be set on the header.
What version of the product are you using? On what operating system?
cppcheclipse 0.9.2, cppcheck 1.38, eclipse 3.5.1 + cdt 6.0.1
Please provide any additional information below.
In the xml structure on error stream, file tag contain the full path to the
header. The ProblemReporter class seems to look for the file if it is not
the one checked... so I don't know if this issue is specific to my
configuration or universal...
Original issue reported on code.google.com by [email protected]
on 2 Nov 2009 at 4:50
Attachments:
if i am making object of class on heap and doesnot relase thr memory the tool
doesnot produce nay error (memory leak ). like in case of struct it produce
error.
cppcheck version 1.47
eclipse Build id: 20100218-1602
OS windows 7
JRE -5.0
Original issue reported on code.google.com by [email protected]
on 4 May 2011 at 9:54
Attachments:
1. Run cppcheck on a large project
It just takes too much time. With such performances, I'd rather launch it
on a server.
It seems that a new cppcheck process is forked for each source code, so
that there is a big overhead.
And it would be nice to be able to perform a remote launch, or at least to
be able to give a result file as input.
Original issue reported on code.google.com by [email protected]
on 5 May 2010 at 9:00
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead? Please provide output
of the console view of cppcheclipse as well as the Eclipse error log.
What version of the cppcheclipse, cppcheck, Eclipse and Java are you using?
On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 15 Feb 2011 at 7:45
What steps will reproduce the problem?
1. downloaded cppcheclipse_0.9.5 from this site
2. extracted to folder cppcheclipse_0.9.5 and pasted that under drop-ins
folder of eclipse
3. restarted eclipse and check under project->properties but no option for
cppcheclipse
4. also checked under windows->preferences but no option for cppcheclipse
What is the expected output? What do you see instead?
How can I ensure it is installed? what could be issue here, y i cant see
the option?
What version of cppcheclipse, cppcheck and Eclipse are you using? On what
operating system?
windows xp, eclispe: 3.4.1, cppcheclipse_0.9.5, Cppcheck 1.42
Please provide output of the console view for cppcheck as well as the
output of the Eclipse error.log
Original issue reported on code.google.com by [email protected]
on 20 Apr 2010 at 6:01
I have a recent git snapshot of cppcheck installed, which gives me
Cppcheck 1.55 dev
when I do a cppcheck --version
cppcheck works fine from the commandline.
However, the eclipse plugin gives me the error message from above. Also, in the
preference page it says that the path to the binary is invalid and the version
info is '??'
So I reckon there is something wrong with the parser for the version string.
thx for your help.
Original issue reported on code.google.com by [email protected]
on 10 Jun 2012 at 9:15
What steps will reproduce the problem?
1. Select files with .C extension
2. No check is done
What is the expected output? What do you see instead?
.C files may be checked by cppcheck (at least w/ 1.38 version).
What version of the product are you using? On what operating system?
0.91, cppcheck 1.38
Please provide any additional information below.
It's not really an issue but restrict the use of cppcheck.
In Builder.java file of package com.googlecode.cppcheclipse.core, a static
attribute (VALID_EXTENSION) defines file extensions on which cppcheck is
launched. Possible ways to "correct this "problem" : simply add ".C" in
this attribute, add a preference field dedicated to file extensions, use
getContentTypeId from ITranslationUnit interface (test if file is an
instance of IAdaptable, if so try transforming it into a ICElement instance
via getAdapter method, then if it is an instance of ITranslationUnit test
if getContentTypeId is "org.eclipse.cdt.core.cxxSource" or
"org.eclipse.cdt.core.cSource")...
Original issue reported on code.google.com by [email protected]
on 27 Oct 2009 at 1:58
For some settings, which have the default value in the project settings,
they are taken over from the workspace preferences, although the "Use
workspace settings" radio button is not set.
Original issue reported on code.google.com by [email protected]
on 4 Feb 2010 at 9:31
What steps will reproduce the problem?
1. Install a dev version of cppcheck (my 'cppcheck --version' output is
"Cppcheck 1.57 dev")
2. Install cppcheclipse (Indigo)
3. In Preferences->C/C++->cppcheclipse try to set the cppcheck binary path
4. The executable is not accepted
The problem is due to the dev version. If I recompile cppcheck with the version
string "1.57" instead of "1.57 dev" all work well.
Original issue reported on code.google.com by [email protected]
on 19 Oct 2012 at 8:50
What steps will reproduce the problem?
1. Run from command line : cppcheck --all --style --unused-functions .
2. Output shows some member variables not initialized in the constructor and an
unused private function.
3. Running cppcheck from eclipse does not give any output. Preferences ->
cppcheclipse -> Settings is ticked on "Check for all known issues (all)".
I have also tried changing Project -> Properties -> cppcheclipse to use project
setting, and defined in Advanced command line arguments: -enable=style
--enable=unusedFunction --enable=all. Still no output.
What is the expected output? What do you see instead? Please provide output
of the console view of cppcheclipse as well as the Eclipse error log.
...
[./utils/TestClass.cpp:3]: (style) Member variable not initialized in the
constructor 'TestClass::m_reducedValue'
[./utils/TestClass.cpp:3]: (style) Member variable not initialized in the
constructor 'TestClass::m_smoothRate'
32/35 files checked 91% done
...
Checking ./utils/Config.cpp...
[./utils/Config.h:373]: (style) Unused private function 'Config::parseDocument'
35/35 files checked 100% done
Checking usage of global functions..
What version of the cppcheclipse, cppcheck, Eclipse and Java are you using?
On what operating system?
cppcheclipse: 0.9.7
cppcheck: 1.52
Eclipse: Helios Service Release 2
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 14 Dec 2011 at 11:57
Since cppcheck 1.51 there are new check types which can be enabled with
--enable=performance,portability,information,missingInclude
Original issue reported on code.google.com by [email protected]
on 1 Nov 2011 at 6:20
It would be good to have zip file with features and plugins folder to
install cppcheclipse manually to dropins foilder.
Original issue reported on code.google.com by [email protected]
on 14 Dec 2009 at 9:59
Hello friends.
I download newest versions of cppcheck and cppcheclipse.
I create simple project in Eclipse.
int main()
{
if(a=5) return 1;
return 0;
}
But cppcheclipse don't warning in line with "if(a=5) return 1;"
But this condition is always true;
That's wrong or I something do wrong. Thank you. Best regards. Oleg.
Original issue reported on code.google.com by [email protected]
on 8 Jun 2010 at 6:46
What steps will reproduce the problem?
1.Install cppcheclipse
2.Run check on project
Not a bug but better to fix this small issue anyway. There are no more annoying
bugs left=)
Attached screenshot will clarify my issue
Thanks
Original issue reported on code.google.com by [email protected]
on 9 Apr 2011 at 8:01
Attachments:
cppcheck supports a selection of checked configurations usind the -D option.
This should be supported by the plugin, to reduce the checking time when using
the --full flag.
There may be a list or menu to input the necessary configurations.
For best integration, it may be the list of defines (displayed while code
completion) could be used for selecting the configurations.
Original issue reported on code.google.com by [email protected]
on 28 Mar 2011 at 4:06
What steps will reproduce the problem?
1. cd gui/
2. qmake
3. make
I've this error compiling the gui with red hat 5 while making the project:
applicationlist.cpp:55: error: ‘class QStringList’ has no member named
‘length’
Original issue reported on code.google.com by [email protected]
on 28 Sep 2011 at 8:42
What steps will reproduce the problem?
1. Right mouse click on a file with extension .pc and cppcheclipse does not
check the file
2. cppcheck <filname>.pc will check the file
3. CDT file extensions can be ammended to include *.pc files as C/C++ files
What is the expected output? What do you see instead? Please provide output
of the console view of cppcheclipse as well as the Eclipse error log.
s.a.
What version of the cppcheclipse, cppcheck, Eclipse and Java are you using?
latest versions
On what operating system?
N/A, all
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 16 May 2012 at 9:56
What steps will reproduce the problem?
1. Run with cppcheck 1.33 (included in current ubuntu release)
2. Get lots of errors about content not being allowed in prolog
3.
What is the expected output? What do you see instead?
You're already checking the cppcheck version to determine if there's an
update (that works fine), perhaps you should add an extra warning if you
encounter version < 1.37 and tell people that it is not going to work anyway :)
Original issue reported on code.google.com by [email protected]
on 30 Dec 2009 at 10:56
What steps will reproduce the problem?
1. Using eclipse-based commercial IDE (RedSuite4), but I'm not sure its
relevant.
2. Project properties for cppcheclipse set to "Run on build"
3. Building project from command line (outside GUI) using
org.eclipse.cdt.managedbuilder.core.headlessbuild application.
I'll attach the eclipse error log. I get a completed build, but without
cppcheck run on the project. My hope would be that cppcheclipse runs, so that
I don't have to run cppcheck on a command line without the benefit of the
eclipse project file. But, if this isn't a supported feature, I'd like to be
able to leave "Run on build" checked. As it stands now, I get a failure dialog.
cppcheclipse is 0.9.7
cppcheck is 1.53
Eclipse Platform is Version: 3.6.2 (RedSuite v4.1.0 [Build 281])
Eclipse CDT is Version: 1.0.0.201102110609
java.version=1.6.0_24
OS is Windows XP, win32 x86
Please provide any additional information below.
I went to the vendor of the IDE first. Here is his reply:
"Looking through the logs, the exception is being caused by cppcheck. It seems
it has been written with a built-in assumption that the GUI is running. You
will need to report this to whoever maintains this plugin. I have no experience
of this plugin, but from what I can tell, you will have to remove the plugin
for headless builds.
[Suggestion: You could install Red Suite twice, and install the plugin into the
version you use interactively, and don't install it into the version you use
'headless']"
Original issue reported on code.google.com by [email protected]
on 23 Feb 2012 at 6:59
Attachments:
Problem - You can't click on the Next button to install cppcheclipse.
Reproduced by -
Starting Eclipse Juno
Select Help/Install New Software
Add a repository http://cppcheclipse.eclipselabs.org.codespot.com/svn/update/
Select cppcheclipse 0.9.7.201104092229 form list
Next button is greyed out.
The next button is only activated when "Group items by category" is not
selected.
I know this is only a minor issue but it caused me some confusion. It looks
like I am not the only one see post
http://www.eclipse.org/forums/index.php/m/753438/?srch=cppcheck#msg_753438
Versions -
cppcheclipse 0.9.7.201104092229
cppcheck 1.55
Eclispe SDK 4.2.0
CDT 8.1.0.201206111645
Java 1.7.0_05
Windows XP SP3
Also occurs in Indigo version
Eclispe SDK 3.7.2
CDT 8.0.2.201202111925
Original issue reported on code.google.com by [email protected]
on 28 Jul 2012 at 2:46
There is no horizontal scrollbar displayed for the problem list.
Original issue reported on code.google.com by [email protected]
on 3 Feb 2010 at 10:52
First installed cppcheclipse plug-in. Selected all the projects in the
workspace >20. Right-clicked and ran cppcheck. Received a list of errors
and warnings. Clicking on the errors/warnings showed me the code line that
needed to be changed.
Corrected a few errors/warnings, especially the 'throwing exception in
destructor not recommended'.
Now when I double click on the warning, the location in the file I am shown
is a comment line, not code.
Is there a 'caching' problem, an indexing problem, etc.?
Original issue reported on code.google.com by [email protected]
on 16 Nov 2009 at 7:38
What steps will reproduce the problem?
1. install the plugin with this link
:http://cppcheclipse.googlecode.com/svn/update/site.xml
2. select a project or file
3. right click and launch Run ccpcheck
4. I have the following message : An internal error occurred during:
"Running cppcheck". java.lang.String.isEmpty()Z
What is the expected output? What do you see instead?
I currently install ccpcheck so I don't know... I have error message windows
What version of the product are you using? On what operating system?
0.9.1.200910222140
with this eclipse version :
Eclipse Platform Version: 3.4.2 Build id: M20090211-1700
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 28 Oct 2009 at 11:05
Support the flag --inconclusive.
Original issue reported on code.google.com by [email protected]
on 1 Nov 2011 at 6:21
What steps will reproduce the problem?
1. Built cppcheck (had pcre installed)
2. Moved binary to /usr/bin
3. Specified binary path in eclipse
4. Selected a cpp, very simple one and run cppcheck
5. Error
This is the output from console:
== Running cppcheck at 2/11/11 9:50 AM ==
Command line: /usr/bin/cppcheck --template
{file};{line};{severity};{id};{message} --enable=style,unusedFunctions
eu/sofia/kpi/common/AbstractThread/AbstractThread.cpp
cppcheck: there is no --enable parameter with the name 'unusedFunctions'
cppcheck: error: could not find or open any of the paths given.
This is the error log trace:
Error checking AbstractThread.cpp
Could not run cppcheck
Error executing '/usr/bin/cppcheck --template
{file};{line};{severity};{id};{message} --enable=style,unusedFunctions
eu/sofia/kpi/common/AbstractThread/AbstractThread.cpp' due to error: Process
exited with an error: 1(Exit value: 1)Maybe more information is available in
the console view.
This are the contents of my cpp:
/**
* @file AbstractThread.cpp
*
* @brief Implementation of the AbstractThread constructor
*
* @date 02/12/2010
*
* @author Alejandro Villamarin
*/
#include "../AbstractThread.h"
using namespace eu_sofia_kpi_common;
AbstractThread::AbstractThread()
{}
What I'm doing wrong??
Regards,
Alex
Original issue reported on code.google.com by [email protected]
on 11 Feb 2011 at 8:58
If a project is closed in an Eclipse workspace, and that project is
highlighted along with other projects, the cppcheck scan results in the
following eclipse message.
org.eclipse.core.internal.resources.ResourceException
Error checking <closed project>
Resource '/<closed project>' is not open
I would think that either no message, or a warning line would be more
appropriate.
Original issue reported on code.google.com by [email protected]
on 16 Nov 2009 at 7:20
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.