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
Steven Myint
ed73c3a026
Fix bad indentation
2014-07-18 11:09:12 -07:00
Daniel Marjamäki
851f89d15f
manual: add chapter about writing cppcheck extensions with python
2014-07-18 19:17:32 +02:00
Daniel Marjamäki
c252885bf8
Merge pull request #369 from Dmitry-Me/useBoolFlagToAvoidComparisonDuplication
...
Use boolean flag to avoid comparison duplication
2014-07-18 18:11:53 +02:00
Daniel Marjamäki
54dbb5f832
cppcheckdata.py: Added Token.getValue()
2014-07-18 18:10:52 +02:00
Daniel Marjamäki
4a784ce2e9
cppcheckdata.py: My intention is that it will be possible to use this module from any code no matter if it's open source or closed source etc. And for any purposes. Added a comment at the top.
2014-07-18 17:57:02 +02:00
Daniel Marjamäki
d003a47826
xml dump: Fixed ValueFlow handling in cppcheckdata.py
2014-07-18 17:29:39 +02:00
Daniel Marjamäki
2cc31acabb
Fixed #5922 (FP: passedByValue for std::string::value_type)
2014-07-18 15:51:59 +02:00
Dmitry-Me
fae9d975cf
Use boolean flag to avoid comparison duplication
2014-07-18 13:31:31 +04:00
Daniel Marjamäki
6c44c20183
Merge pull request #368 from matthiaskrgr/htmlreport_inconclusive
...
htmlreport: fix #5963 , handle inconclusive messages and underlay them in grey color.
2014-07-18 11:17:17 +02:00
Daniel Marjamäki
946c139043
Merge pull request #367 from Dmitry-Me/fixVariableCapitalization
...
Fix variable capitalization.
2014-07-18 11:15:17 +02:00
Matthias Krüger
fadf9baf46
htmlreport: fix #5963 , handle inconclusive messages and underlay them in grey color.
2014-07-17 23:05:00 +02:00
Alexander Mai
55e45add4a
Fix compiler warnings
2014-07-17 20:04:56 +02:00
Dmitry-Me
f995f67a11
Fix variable capitalization.
2014-07-17 12:38:09 +04:00
Daniel Marjamäki
425e7527bb
Merge pull request #366 from Dmitry-Me/useTempVariableToOmitRecomputation
...
Use temp variable to omit recomputing the same value.
2014-07-17 10:27:47 +02:00
PKEuS
8c96cc59c9
Fixed false positive #5976 : Properly handle shift from stream.
2014-07-17 10:03:58 +02:00
Daniel Marjamäki
15bb447fdc
Fixed #5965 (False positive zerodiv - loop iterating over double variable)
2014-07-17 08:44:55 +02:00
Dmitry-Me
c829dff2b9
Use temp variable to omit recomputing the same value.
2014-07-17 10:44:19 +04:00
Daniel Marjamäki
d3425d5c61
xml dump: fixed cppcheckdata loader so previous/next will work
2014-07-17 07:39:19 +02:00
Daniel Marjamäki
27829383a5
xml dump: Read scope-type attribute in cppcheckdata.py module
2014-07-16 16:15:28 +02:00
Daniel Marjamäki
b1e5b015df
xml dump: output some more info in the dump
2014-07-16 15:27:13 +02:00
Daniel Marjamäki
d734a98c89
xml dump: Added tools/cppcheckdata.py that loads the dump.
2014-07-16 15:26:59 +02:00
Daniel Marjamäki
51c2245a07
Merge pull request #364 from Dmitry-Me/tempVariablesAndBetterNames
...
Shorten code by using temp variables, cleanup variable names.
2014-07-16 15:22:11 +02:00
Daniel Marjamäki
136dc61454
Merge pull request #365 from matthiaskrgr/travis_working
...
travis: check --dump
2014-07-16 15:20:08 +02:00
Matthias Krüger
523b53100a
travis: check --dump
2014-07-14 20:17:40 +02:00
Daniel Marjamäki
b6a9c53826
xml dump: fixed some bad xml output in the token list dump
2014-07-14 19:49:31 +02:00
Daniel Marjamäki
2f7b8fe4b2
xml dump: fixed some minor issues in symboldatabase dump
2014-07-14 19:25:30 +02:00