Daniel Marjamäki
5de1e35350
CheckBufferOverrun: Fixed minsize checking of string literals. Check sizeof string instead of strlen.
2014-07-30 20:35:21 +02:00
Daniel Marjamäki
25846cf223
ValueFlow: Fix for if/else valueflow analysis
2014-07-30 18:12:33 +02:00
Daniel Marjamäki
3d8ac3d0a1
astyle formatting
...
[ci skip]
2014-07-30 17:53:41 +02:00
Daniel Marjamäki
1144384242
reduce: simplify multiline function declarations better
2014-07-30 17:43:24 +02:00
Daniel Marjamäki
e8451b5d91
add missing flag. this testcase should only run in non-simplified mode.
2014-07-30 12:18:47 +02:00
Daniel Marjamäki
473b1bdb2b
Multicondition: Fixed FP when using dynamic_cast
2014-07-30 11:23:09 +02:00
Matthias Krüger
f5c872ed52
htmlreport: stats: display total number of warnings/errors.
2014-07-30 01:27:50 +02:00
Daniel Marjamäki
62cde673ee
qt.cfg: Define Q_DECL_EXPORT and Q_DECL_IMPORT
2014-07-29 16:56:15 +02:00
vBm
ef0a4e87cb
Some minor PEP8 fixes
2014-07-29 13:56:31 +02:00
Dmitry-Me
ee180787eb
Bring variable declarations closer to where they're first used.
2014-07-29 13:59:45 +04:00
Matthias Krüger
bbd91fcfd3
Merge remote-tracking branch 'matthiaskrgr/travis'
2014-07-28 18:09:19 +02:00
Daniel Marjamäki
905a383ac2
Merge pull request #381 from Dmitry-Me/checkBooleanFlagFirst
...
Run cheaper check first, don't check the same condition twice.
2014-07-28 18:02:49 +02:00
Matthias Krüger
15a197eea6
travis: suppress current warnings, make cppcheck not crash the files in clang that crash currently.
2014-07-28 17:14:01 +02:00
Matthias Krüger
3c21acd1fa
travis: update clang repo hash
2014-07-28 16:48:56 +02:00
Matthias Krüger
b45bb821f2
travis: make clang check sensitive to internal cppcheck errors.
2014-07-28 16:48:56 +02:00
Matthias Krüger
f16524c9dd
travis: add -DCHECK_INTERNAL to the VERIFY=1 job to automatically fetch issues like #5869 via travis, check clang with --exception-handling
2014-07-28 16:48:56 +02:00
Matthias Krüger
0f2ba9e2da
travis: replace kernel check with clang check.
...
Check clang instead of kernel, which is a lot faster.
Make clang check failure fatal to the build.
2014-07-28 16:48:56 +02:00
Daniel Marjamäki
8a1c5d6fce
Fixed #6011 (crash: libreoffice/binfilter svt_enhwmf.cxx)
2014-07-28 16:33:42 +02:00
Daniel Marjamäki
fdfea717c6
Suspicious string comparison: Refactoring using AST. Fixed FP in Lac.
2014-07-28 14:27:35 +02:00
Dmitry-Me
dc03b98e60
Run cheaper check first, don't check the same condition twice.
2014-07-28 14:58:19 +04:00
Robert Reif
90bc59e0fa
Fixed #6009 (Detect type mismatch in printf-like function when type is returned)
2014-07-28 09:16:35 +02:00
Daniel Marjamäki
76020d2ad0
astIsFloat: expression 'floatvar ? 0x40 : 0' is not float
2014-07-26 09:09:58 +02:00
Daniel Marjamäki
55a8009e97
Merge pull request #378 from Dmitry-Me/reusePreviouslyComputedValues
...
Reuse previously computed values, use more const.
2014-07-25 16:47:45 +02:00
Dmitry-Me
431453f53e
Reuse previously computed values, use more const.
2014-07-25 15:05:13 +04:00
Daniel Marjamäki
216ecd06e1
Fix Cppcheck warning. Make function Preprocessor::readpreprocessor static instead of const.
2014-07-25 12:43:55 +02:00
PKEuS
499821de4d
Merge pull request #377 from Dmitry-Me/bringDeclarationsCloserToWhereTheyreNeeded
...
Bring declarations closer to where they're needed.
2014-07-24 19:01:44 +02:00
Matthias Krüger
da319b7485
htmlreport: stats: sort primary by occurrences but if several IDs occur equally often, sort them alphabetically.
2014-07-24 16:35:57 +02:00
Dmitry-Me
f104aa237f
Bring declarations closer to where they're needed.
2014-07-24 18:34:13 +04:00
PKEuS
65e9085b66
Merge pull request #376 from Dmitry-Me/resolveIssue1214637
...
Resolve CID 1214637.
2014-07-24 15:49:36 +02:00
Dmitry-Me
a4d597451b
Resolve CID 1214637.
2014-07-24 16:54:20 +04:00
Daniel Marjamäki
1cb37e9870
Merge pull request #374 from Dmitry-Me/useTempVariablesToAvoidRepeatedActions
...
Use temp variables to avoid repeated actions in code.
2014-07-23 18:30:59 +02:00
Dmitry-Me
615eb32fdc
Use temp variables to avoid repeated actions in code.
2014-07-23 18:51:23 +04:00
Daniel Marjamäki
8609e84737
Merge pull request #373 from Dmitry-Me/cacheOptionFlagsAndCheckThemFirst
...
Cache option flags and check them first.
2014-07-23 16:37:57 +02:00
Dmitry-Me
07c120f1af
Cache option flags and check them first.
2014-07-23 17:06:27 +04:00
Daniel Marjamäki
2e60f30bfc
Merge pull request #372 from Dmitry-Me/dontUseArrayAtWhenItWouldntThrow
...
Use [], not at() when the index is guaranteed to be valid.
2014-07-23 14:15:42 +02:00
Matthias Krüger
f58873a9d6
htmlreport: on the index page, print stats of which warning ID occured how often.
2014-07-23 12:37:21 +02:00
Matthias Krüger
ae0c1f7112
htmlreport: don't crash when pygments fails to determine filetype of a file we want to highlight. This happens for files with no extension (for example "foo" instead of "foo.c").
2014-07-22 14:20:01 +02:00
Matthias Krüger
90b41aa672
htmlreport: if no arguments are passed, print --help output; when done generating the report, print where index.html is (take report_dir into account).
2014-07-22 14:11:19 +02:00
Matthias Krüger
d718793540
htmlreport: sort error-data per line (in index.html page as well as in the defect list of the respective files.)
2014-07-21 21:48:16 +02:00
Daniel Marjamäki
c5e9da2984
xml dump: add more token attributes
2014-07-21 12:44:53 +02:00
Dmitry-Me
cd13232062
Use [], not at() when the index is guaranteed to be valid.
2014-07-21 10:37:08 +04:00
Matthias Krüger
46a0ab1754
htmlreport: fix #5998 , crash on some files with "UnicodeDecodeError".
...
For those files that we can't decode, don't generate a html-preview but note into index.html that we couldn't process the file.
At the end, summarize on which files we failed and suggest using --source-encoding option.
2014-07-21 01:41:26 +02:00
Daniel Marjamäki
57a05bc341
xml dump: added 'astIsFloat' utility function in cppcheckdata.py
2014-07-20 15:24:40 +02:00
Daniel Marjamäki
5ae6234729
Fixed #5978 (false positive: Array 'm_pool_vector[-1]' accessed at index 0, which is out of bounds.)
2014-07-20 11:44:25 +02:00
Daniel Marjamäki
1e5eab8f17
xml dump: Added function attribute in scope
2014-07-20 11:44:01 +02:00
Daniel Marjamäki
328cc7b8f5
Fixed #5996 (false positive: Clarify calculation precedence for '+' and '?'.)
2014-07-19 18:29:53 +02:00
Daniel Marjamäki
264b94e0fa
Merge pull request #371 from matthiaskrgr/travis_working
...
travis: remove unneeded suppressions from self-check.
2014-07-19 12:38:50 +02:00
Matthias Krüger
161fec762d
travis: remove unneeded suppressions from self-check.
2014-07-19 12:15:01 +02:00
Daniel Marjamäki
0e6d636be7
Merge pull request #370 from myint/patch-1
...
Fix bad indentation
2014-07-19 09:20:42 +02:00
Daniel Marjamäki
af2b94e322
Fixed #5826 (Change error message for 'throw in destructor' check)
2014-07-19 03:29:50 +02:00