Tim Gerundt
d46deb528b
Manual: Don't wrap <programlisting> with <para>
2011-07-01 17:13:51 +02:00
Tim Gerundt
e69c26a0ce
Manual: Use <command> and <parameter> tags
2011-07-01 17:06:56 +02:00
Robert Reif
301e59cea0
fix false positive for unused local class/struct variable
2011-07-01 08:45:29 -04:00
Robert Reif
18e6509c5d
add support in CheckOther::functionVariableUsage() for checking structures that are declared with struct keyword
2011-07-01 07:42:20 -04:00
Robert Reif
3225c9dd9b
cleanup isStatic in CheckOther::functionVariableUsage()
2011-07-01 07:15:59 -04:00
Robert Reif
7826b5e22d
add support for detecting unused function variables of type class or struct
2011-06-30 21:58:11 -04:00
Reijo Tomperi
6d4799e0b8
Minor cleanup related to previous fix.
...
This code should not be needed anymore as tokenizer should simplify question mark away.
2011-06-30 22:10:17 +03:00
Reijo Tomperi
89fd5bacf9
Fix #2849 , False positive: memory leak (using question mark operator)
...
http://sourceforge.net/apps/trac/cppcheck/ticket/2849
Simplify: *d = b ? b : a; into if-else
Simplify { ; { ; } } into { ; }
Removed one memleak test which should be redundant now as question marks
should not get into memleak check.
2011-06-30 22:04:26 +03:00
Tim Gerundt
4a25327b57
Manual: Use <filename> tag for files and directories
2011-06-30 20:58:43 +02:00
Daniel Marjamäki
6375e1d3dc
Fixed #2849 (False positive: memory leak (using question mark operator))
2011-06-30 17:31:22 +02:00
Robert Reif
77859b9a0f
fix #2878 (derived global class not tokenized properly (class A : ::B { };))
2011-06-30 07:25:36 -04:00
Robert Reif
586fdd24f2
fix #2825 (missing varid on class variables when multiple inheritance is used)
2011-06-29 20:04:04 -04:00
Robert Reif
c99a15516d
fix symbol database derived template class support
2011-06-29 19:52:07 -04:00
Robert Reif
18369ea6ac
add global namespace derived class support
2011-06-29 19:43:39 -04:00
Robert Reif
443dd4c392
partial fix for #2867 handle derived class
2011-06-29 19:39:19 -04:00
Kimmo Varis
7af920a70b
Document that Path::simplifyPath() needs / as separators.
2011-06-29 21:44:53 +03:00
Daniel Marjamäki
d76861270a
Fixed #2797 (Inline suppressions do not handle filenames correctly)
2011-06-29 20:23:39 +02:00
Daniel Marjamäki
cacca00080
Fixed #2855 (False positive: resource leak when reusing fd)
2011-06-29 20:00:21 +02:00
Daniel Marjamäki
edae93a68a
Merge pull request #26 from gerundt/man-appendix
...
Add "Writing Cppcheck rules" and "Cppcheck Design" articles as appendix to the manual
2011-06-29 09:58:15 -07:00
Daniel Marjamäki
e597ad72e7
Fixed #2841 (False positive: Array index out of bounds, can't compare ints to chars)
2011-06-29 18:44:05 +02:00
Robert Reif
6eecab5d73
fix #2807 (Wrong handling of function references when prefixed with &)
2011-06-29 07:19:34 -04:00
Robert Reif
1286898fa0
fix #2864 (--errorlist missing errors: variableHidingTypedef and Extra qualification)
2011-06-28 21:46:54 -04:00
Robert Reif
f403de7bad
partial fix for #2867 Tokenizer::removeRedundantAssignment didn't understand function local class and removed class variable
2011-06-28 19:48:28 -04:00
Robert Reif
70a32fc245
fix #2875 (segmentation fault of cppcheck ( 0; (a) < (a) ))
2011-06-28 18:47:18 -04:00
Tim Gerundt
8a48193162
Drop "Writing Cppcheck rules" and "Cppcheck Design" articles from build file
2011-06-27 23:51:00 +02:00
Tim Gerundt
c4762e0c50
Add "Writing Cppcheck rules" and "Cppcheck Design" articles as appendix to the manual
2011-06-27 23:36:23 +02:00
Tim Gerundt
866c836020
Web: Update style from trac timeline items at dev info page
2011-06-27 21:51:12 +02:00
Tim Gerundt
c2e725c691
Web: Show also last post time from active forum topics
2011-06-27 21:47:16 +02:00
Robert Reif
272eb445fb
fix #2865 (segmentation fault of cppcheck ( char a[1] ))
2011-06-27 07:31:10 -04:00
Robert Reif
1713eeb532
fix #2859 (Extra qualification not detected)
2011-06-26 21:13:29 -04:00
Reijo Tomperi
918b4d859f
Fixed #2860 , False positive: Returning value of strncat() reported as memory leak
...
http://sourceforge.net/apps/trac/cppcheck/ticket/2860
2011-06-26 23:53:16 +03:00
Reijo Tomperi
382520ee9f
Fix #2840 , False positive: Null pointer dereference
...
http://sourceforge.net/apps/trac/cppcheck/ticket/2840
2011-06-26 22:46:33 +03:00
Tim Gerundt
ece3c7fa83
Merge pull request #25 from kimmov/web
...
Web: Couple of front page improvements
2011-06-25 05:12:30 -07:00
Kimmo Varis
d35d66bc4a
Web: Small clarification for the front page.
2011-06-25 00:37:44 +03:00
Kimmo Varis
873dbc5d78
Web: Add link to Wikipedia's static analysis tool article.
...
People looking at our front page may not be familiar with what the
static analysis even means. Add a link which explains it for them.
2011-06-24 23:18:02 +03:00
Kimmo Varis
42f1ea0ad2
Web: Improve front page language.
...
Improve language in few places at the home page. And try to make
couple of things more clear for people not familiar with this kind
of tools.
2011-06-24 23:08:41 +03:00
Tim Gerundt
4ab390e4ee
Web: Show active forum topics at dev info page
2011-06-24 18:34:48 +02:00
Robert Reif
93495613dd
replace some pattern matching with variable lookup in checkGlobalAndLocalVariable
2011-06-24 08:02:41 -04:00
Robert Reif
4656eba34c
set symbol database array variable dimensions specified by a variable to the maximum size that variable can hold
2011-06-23 22:35:15 -04:00
Robert Reif
65ecbfd4ff
fix an off by 1 error introduced in 48e6ea271a
that prevented checking all variables
2011-06-23 22:31:16 -04:00
Kimmo Varis
387fd35ff3
GUITESTS: Improve the running script.
...
Don't use recursion in the script. The Python's os.walk() already
lists all files in subdirectories and using recursion only caused
tests to be found twice. Also handle the case the project file
defines binary path with DESTDIR define.
2011-06-23 23:02:49 +03:00
Daniel Marjamäki
40a14736b7
Added TODO test case for the simplifyKnownVariables to better simplify local variables
2011-06-23 17:03:14 +02:00
Daniel Marjamäki
2d1b7285d2
Fixed #2815 (FP: Null pointer dereference error about a member)
2011-06-23 16:58:01 +02:00
Tim Gerundt
07507a4e1d
Merge branch 'master' of https://github.com/danmar/cppcheck
2011-06-23 12:08:21 +02:00
Tim Gerundt
dcaf7be9b5
Web: Download only the chars we really need from Orbitron font - Dev info page too
2011-06-23 12:06:04 +02:00
Tim Gerundt
84121ea370
Web: Download only the chars we really need from Orbitron font
2011-06-23 11:10:42 +02:00
Tim Gerundt
af8c8393fe
Web: Update download to version 1.49
2011-06-23 11:05:06 +02:00
Robert Reif
a87fb388e3
use symbol database to lookup variable type for buffer overrun checks
2011-06-22 23:11:17 -04:00
Robert Reif
48e6ea271a
start using symbol database array info for buffer overrun checks
2011-06-22 22:44:11 -04:00
Robert Reif
0c46f44e3d
add array information to symbol database
2011-06-22 22:41:11 -04:00