Commit Graph

11604 Commits

Author SHA1 Message Date
Daniel Marjamäki 54aede9086 Fixed #5941 (ValueFlow: Wrong value in subfunction under ?) 2014-06-24 19:30:46 +02:00
PKEuS 1b5d127373 Cache results for TokenList::isC() and TokenList::isCPP() to avoid redundant calls to Path::isCPP()/isC(), which perform slow string operations (conversion to lowercase, substring, comparisons)
-> Speedup of 2% on self-checking cppcheck-core (MSVC12, x64, not matchcompiled)
2014-06-24 17:42:39 +02:00
orbitcowboy 731180b7dd std.cfg: Added support for qsort and improved stro* functions. 2014-06-24 14:16:54 +02:00
Daniel Marjamäki 933832095d Merge pull request #345 from toralf/html
cppcheck-htmlreport: print the cppcheck version in every footer
2014-06-24 07:11:59 +02:00
Toralf Förster ee10def962 Merge branch 'html' of https://github.com/toralf/cppcheck into html 2014-06-23 19:14:28 +02:00
Toralf Förster 91fa452020 cppcheck-htmlreport: print the cppcheck version in every footer
missed in 2d4bae0

Signed-off-by: Toralf Förster <toralf.foerster@gmx.de>
2014-06-23 19:13:17 +02:00
Toralf Förster 824a1fbd5b cppcheck-htmlreport: print the cppcheck version in every footer
missed in 2d4bae0

Signed-off-by: Toralf Förster <toralf.foerster@gmx.de>
2014-06-23 19:07:58 +02:00
PKEuS 2d54bace1b Improved performance of CheckBufferOverrun::checkScope() (#5944):
-> Speedup by 40% (MSVC12, x64, not matchcompiled) on the file attached to the ticket
2014-06-23 19:06:59 +02:00
Daniel Marjamäki 1ae6531c4c Fixed #5923 (false positive: (error) Resource leak: fp (static file pointer)) 2014-06-23 16:05:28 +02:00
orbitcowboy 0a17473962 std.cfg: Added support for bsearch. 2014-06-23 14:43:56 +02:00
orbitcowboy f90445e947 Extended std.cfg and avr.cfg about more functions. 2014-06-23 14:15:47 +02:00
orbitcowboy f57e875351 Astyle run; Extended std.cfg and avr.cfg about a few more functions. 2014-06-23 11:59:14 +02:00
Daniel Marjamäki ae81b09b58 Refactoring: Move isScopeNoReturn implementation to library and reuse it both in ValueFlow and Tokenizer 2014-06-22 19:13:15 +02:00
Daniel Marjamäki c19fc08a68 Merge pull request #344 from matthiaskrgr/travis_O
travis: change build optimization level back to -O2 (from -O3) as discussed
2014-06-22 19:10:52 +02:00
Matthias Krüger b4630e03ab travis: change build optimization level back to -O2 (from -O3) as discussed in
59077b06f9
2014-06-22 13:56:06 +02:00
Daniel Marjamäki f78cbda2db Refactoring: Removed CheckNullPointer::nullPointerByCheckAndDeRef and implemented needed analysis in ValueFlow instead. 2014-06-22 10:02:14 +02:00
XhmikosR 8d796519d9 Update .gitignore.
Remove accidentally added file.

[ci skip]
2014-06-21 19:56:26 +03:00
XhmikosR 88f8349a45 Clean up .gitignore and remove the currently unneeded .gitattributes file.
[ci skip]
2014-06-21 19:47:59 +03:00
Daniel Marjamäki 3e8cf81dbf htdocs: removed files, they have been moved to the repo cppcheck-htdocs 2014-06-21 18:00:32 +02:00
Daniel Marjamäki 717b9f970f htdocs: change link to trac 2014-06-21 17:29:00 +02:00
Martin Ettl be51637c1c avr.cfg: Added support for some stdio.h macros. 2014-06-20 09:49:06 +02:00
Daniel Marjamäki ef81bc363a ValueFlow: analysis in condition. 2014-06-19 17:29:41 +02:00
Daniel Marjamäki dec251ac44 ValueFlow: Refactoring. Use utility function isVariableChanged. 2014-06-19 05:41:19 +02:00
Martin Ettl e8f0da845b avr.cfg: Removed NAN definition. 2014-06-18 05:38:05 +02:00
Martin Ettl 2ee0723ad4 avr.cfg: Added macros of stdint.h. 2014-06-18 05:34:31 +02:00
Martin Ettl 156300b2bf avr.cfg: Added accidently commented out define. 2014-06-18 05:20:33 +02:00
Martin Ettl f0099905e9 avr.cfg: Added more defines. 2014-06-18 05:18:48 +02:00
Toralf Förster d3a71916aa htmlreport: Use source_encoding to open XML files 2014-06-18 22:13:26 +02:00
PKEuS a703f643f9 Merge pull request #342 from matthiaskrgr/travis_working
Travis working
2014-06-18 21:08:30 +02:00
Daniel Marjamäki 84581817f6 ValueFlow: Improved valueFlowForward. RHS in assignment. 2014-06-18 21:07:01 +02:00
Matthias Krüger 59077b06f9 travis: add -O3 -march=native -mtune=native to default CXXFLAGS 2014-06-18 19:30:32 +02:00
Matthias Krüger cfd7279455 travis: run cppcheck with --exception-handling where it matters 2014-06-18 19:15:06 +02:00
Matthias Krüger 94c6fa1083 travis: move CHECK_INTERNAL check up, remove "SRCDIR=build VERIFY=1" job in favor of "MAKEFLAGS="HAVE_RULES=yes" SRCDIR=build VERIFY=1"
Conflicts:
	.travis.yml
2014-06-18 19:14:25 +02:00
Matthias Krüger 1900e7b25f travis: run test_matchcompiler.py 2014-06-18 19:08:27 +02:00
PKEuS e2b77a33dd Fixed test_matchcompiler.py 2014-06-18 18:51:24 +02:00
PKEuS 188f9b4509 Fixed #error handling:
- Reporting them once is enough
- Don't report them if --force is used - since we silently drop these configurations when we check multiple configurations. Without the fix, -f combined with -D resulted in #error being shown erroneously.
- No redundant preprocessor instance to report them
2014-06-18 17:57:31 +02:00
PKEuS dcc646735d Made static local variable non-static (thread-safety, #5934) 2014-06-18 17:57:31 +02:00
orbitcowboy 0804997c9b avr.cfg: Cleanup. 2014-06-18 11:58:32 +02:00
orbitcowboy 5d579dc21b avr.cfg: Added more defines. 2014-06-18 08:31:32 +02:00
Daniel Marjamäki 13761927ff ValueFlow: better analysis in valueFlowAfterCondition of 'if|while ( %var% )' etc 2014-06-18 06:57:48 +02:00
Daniel Marjamäki 9999ce9468 ValueFlow: extend aftercondition analysis below conditional code 2014-06-18 05:51:23 +02:00
Daniel Marjamäki b983a8795f runastyle
[ci skip]
2014-06-18 05:43:44 +02:00
orbitcowboy 2255ece5c5 Extended std.cfg about alloca function and avr.cfg about a few definitions. 2014-06-17 17:00:27 +02:00
orbitcowboy 11cf4d3215 avr.cfg: Added more podtypes. 2014-06-17 13:04:48 +02:00
orbitcowboy 5a4cf3be53 Cleanup avr.cfg file. 2014-06-17 09:02:04 +02:00
orbitcowboy fc84e9dcff Running astyle, no functional changes. [ci skip]. 2014-06-17 08:55:22 +02:00
Alexander Mai 2e3f26ba58 Patch from Dmitry-Me: reorder checks so that cheaper ones go first, reuse previously computed values, return early on edge condition 2014-06-16 21:36:31 +02:00
amai2012 c61d2b9f41 #5926 Dangerous iterator comparison using operator< on 'std::deque'.
std::deque features a random access iterator, so warning stlBoundaries
is a false positive
2014-06-16 20:50:47 +02:00
Daniel Marjamäki 847bb44bdd ValueFlow: Improved analysis after condition when ! operator is used 2014-06-16 16:39:41 +02:00
orbitcowboy b501708b6f Added cfg for AVR microcontrollers. This config file contains podtype definitions so far. 2014-06-16 15:14:33 +02:00