Commit Graph

13993 Commits

Author SHA1 Message Date
Daniel Marjamäki 871b02ea88 removed testcase for #5238. it's not good enough. 2015-08-15 07:38:56 +02:00
Martin Ettl 84486605ec #6392: Added a regression test case. 2015-08-15 01:00:36 +02:00
Martin Ettl 278808daa9 #5238: Added a regression test case. 2015-08-15 00:49:07 +02:00
Martin Ettl 640ec3a099 #6491: Added a regression test. 2015-08-15 00:31:26 +02:00
Alexander Mai 4fe61a6c3e Correct actual result string 2015-08-14 18:55:21 +02:00
Alexander Mai 8b433fa053 Add regression test for #6299. Fix clang compiler warning due to doxygen comment 2015-08-14 18:27:03 +02:00
PKEuS a297a03b64 Fixed false positive #6787: Skip over lambdas in CheckAutoVariables::returnReference() 2015-08-14 13:03:07 +02:00
PKEuS b0bf69bae7 Fixed false positive #6763 and reordered conditions
Ran AStyle
2015-08-14 12:50:45 +02:00
PKEuS 3cf67014ad Fixed parsing of template in enum 2015-08-14 11:08:03 +02:00
Daniel Marjamäki e578988832 invalidScanf: removed the checking for 'scanf crash with huge input data for old glibc'. new systems are not vulnerable to this bug anymore. 2015-08-14 08:03:46 +02:00
Martin Ettl e9b1f1f0a6 test/cfg/ Started to test std::complex functions. 2015-08-14 02:06:48 +02:00
Martin Ettl 77869b7812 test/cfg: Improved testing of functions from standard namespace. Added test/cfg/*.c* files to astyle script and formatted code. 2015-08-14 01:36:44 +02:00
Martin Ettl 3ab6c5aa85 generate_coverage_report: Execute library tests when generating the coverage report. This increased the current lines test coverage from 93.9% to 94.0%. 2015-08-14 01:06:50 +02:00
Daniel Marjamäki 7ec5b27caf Merge pull request #642 from versat/master
GUI Projectfiledialog: Added tooltip
2015-08-13 18:52:44 +02:00
PKEuS 2a70fe3f66 Merge pull request #643 from Dmitry-Me/eliminateRepeatedLookup
Eliminate repeated lookup, better variable names
2015-08-13 15:29:22 +02:00
Dmitry-Me 769d8e713d Eliminate repeated lookup, better variable names 2015-08-13 16:10:23 +03:00
versat 9e09c40eb3 GUI Projectfiledialog: Added tooltip
Added tooltip with explanation how to separate defines.
2015-08-13 14:30:16 +02:00
PKEuS 4180ad38d4 Fixed bugs in std.cfg 2015-08-13 14:11:16 +02:00
Daniel Marjamäki c0998cbc11 std.cfg: add std:: functions 2015-08-13 11:03:21 +02:00
orbitcowboy b927b77fc4 Merge pull request #641 from pepsiman/rawstringliteral
Fixed #5028  Fix parsing of C++11 raw string literals
2015-08-12 15:01:00 +02:00
Malcolm Parsons daf633ef78 Fixed #5028 Fix parsing of C++11 raw string literals 2015-08-12 13:11:55 +01:00
Daniel Marjamäki 6865724c4e Fixed #6914 (Token::expressionString: parenthesis missing in expression (*it)->stats.corpse_ticks) 2015-08-12 10:55:25 +02:00
Daniel Marjamäki 9df3aea83d Merge pull request #640 from Dmitry-Me/cacheAndReuse2
Cache and reuse value
2015-08-12 10:54:55 +02:00
Dmitry-Me f0aa9e31de Cache and reuse value 2015-08-12 10:57:36 +03:00
PKEuS 33538cffa0 Merge pull request #639 from Dmitry-Me/reduceVariablesScope
Reduce variables scope
2015-08-12 08:30:54 +02:00
Dmitry-Me 50fb9cea66 Reduce variables scope 2015-08-11 17:20:30 +03:00
PKEuS 002b606a9c Refactorized CheckObsoleteFunctions:
- Mention all checked functions in getErrorMessages() and classInfo(), not only posix ones
- Made members static and initialize them only once only once
- Better support for global namespace
2015-08-11 14:57:23 +02:00
Daniel Marjamäki 7368daa14a Merge pull request #636 from Jan2go/master
Allow project roots that are relative to the project file's location
2015-08-11 14:31:14 +02:00
Daniel Marjamäki 8d79b9595e Merge pull request #638 from pepsiman/freopen
freopen does not allocate
2015-08-11 14:29:39 +02:00
PKEuS c96f85e2a2 Refactorization: Implemented rValue-reference- and "const char*"-overload to make_container::operator<< 2015-08-11 14:05:01 +02:00
PKEuS ebfdacb0d3 Introduced .cfg file format version to 2 (to prevent older cppcheck versions from failing silently when reading them), because 5b287fc849 introduced a backward-incompatible feature.
Increased format version of std.cfg, which is the only cfg file that makes use of the new backward incompatible feature.

Refactorization: Avoid a redundant std::string::find()-call
2015-08-11 14:05:01 +02:00
Matthias Krüger 7a90b36cca CheckVaarg::va_start_subsequentCallsError: fix spelling "inbetween" -> "in between" 2015-08-11 14:03:00 +02:00
Matthias Krüger 391194579c CheckOther::checkComparisonFunctionIsAlwaysTrueOrFalseError: "evaluates always" -> "always evaluates" 2015-08-11 13:27:55 +02:00
Malcolm Parsons fcea689a20 freopen does not allocate 2015-08-11 12:09:46 +01:00
Matthias Krüger c1f719aa68 run dmake 2015-08-11 13:02:38 +02:00
PKEuS 9f9e0b9478 Convert path from native seperators before using it in PathMatcher (#6926) 2015-08-11 12:49:18 +02:00
Daniel Marjamäki 501ab0b6da CheckLeakAutoVar: updated handling of unknown types in C++ 2015-08-11 12:41:42 +02:00
PKEuS b0b01d3962 Merge pull request #637 from Dmitry-Me/mergeOverlappingPatterns5
Merge overlapping patterns
2015-08-11 12:24:52 +02:00
Daniel Marjamäki 2e78d21480 Fixed #6730 (ValueFlow: inner scope does not return (continue,throw)) 2015-08-11 11:21:03 +02:00
Dmitry-Me 51ee9b0e06 Merge overlapping patterns 2015-08-11 12:19:59 +03:00
Martin Ettl 7a0da68843 Merge branch 'master' of https://github.com/danmar/cppcheck 2015-08-10 23:44:50 +02:00
Martin Ettl 797cac5098 Library: Started to test functions from std-namespace. 2015-08-10 23:44:36 +02:00
Matthias Krüger 72b00b35f8 Tokenizer::simplifyNamespaceStd() check condition only once instead of potentially 3 times 2015-08-10 23:33:58 +02:00
Martin Ettl 1b2a6903cb Merge branch 'master' of https://github.com/danmar/cppcheck 2015-08-10 23:10:11 +02:00
Martin Ettl ceafde86ad Library: Removed not needed suppressions. 2015-08-10 23:09:56 +02:00
PKEuS bce45fb328 Merge pull request #635 from Dmitry-Me/removeUnimplementedMethod
Remove unimplemented method
2015-08-10 23:00:22 +02:00
Martin Ettl 38cba67115 Suppressed compiler warnings during testing cfg tests. 2015-08-10 22:58:46 +02:00
Alexander Mai b3cc4629a6 Remove obsolete tests. Add incomplete test for GNU __builtin_expect to gnu.c 2015-08-10 21:20:20 +02:00
Jan Hellwig 308e7d9ae4 Allow project roots that are relative to the project file's location 2015-08-10 20:48:08 +02:00
Alexander Mai a5aba110a4 Replace Tokenizer::simplifyBuiltinExpect by a suitable addition to gnu.cfg 2015-08-10 20:21:30 +02:00