Commit Graph

6609 Commits

Author SHA1 Message Date
Daniel Marjamäki c999f014fe Merge pull request #27 from gerundt/man-improvements
Manual improvements
2011-07-04 12:10:10 -07:00
Daniel Marjamäki 982b645ff4 Fixed #2775 (Uninitialized variable: Not detected when uninitialized struct pointer is dereferenced in sub function) 2011-07-04 21:04:32 +02:00
Daniel Marjamäki 5561d81f0d Tokenizer::simplifyGoto: fixed unit tests 2011-07-03 18:35:11 +02:00
Robert Reif b143b283e9 fix #2886 (crash of cppcheck ( typedef struct x { } )) 2011-07-03 10:50:15 -04:00
Robert Reif 8ec1dfacbf fix missing pop in Tokenizer::simplifyStructDecl() when anonymous struct/union removed 2011-07-03 08:14:51 -04:00
Robert Reif b32b2c6d87 add support for checking unused std::string local variables 2011-07-02 19:25:10 -04:00
Tim Gerundt 6800f801c6 Web: Redirect doxyoutput, coverage- and cpd report to devinfo directory 2011-07-02 17:21:34 +02:00
Tim Gerundt 8edf654d24 Manual: Add internal links 2011-07-02 16:21:58 +02:00
Tim Gerundt 9d9d1063de * Manual: Miscellaneous tag changes 2011-07-02 15:45:10 +02:00
Robert Reif 3f4cc5fa3a add class A {} a; -> class A {}; A a; conversion capability to Tokenizer::simplifyStructDecl() 2011-07-02 09:21:30 -04:00
Tim Gerundt a02d6b4619 Manual: Move "Writing Cppcheck rules" author to the beginning of the appendix 2011-07-02 14:50:01 +02:00
Tim Gerundt 364900c5c0 Manual: Miscellaneous tag changes 2011-07-02 14:04:13 +02:00
Robert Reif d447e61b09 fix #2884 (Integer overflow warning in 64-bit build) 2011-07-01 16:59:17 -04:00
Tim Gerundt 533426d3c2 Manual: Use tags for menu items 2011-07-01 19:49:16 +02:00
Daniel Marjamäki db4a28d60b Tokenizer::simplifyGoto: Only simplify the last label in the function. If there are many labels in the same function and all labels are simplified, this function becomes very slow. 2011-07-01 18:07:41 +02:00
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