cppcheck/addons
rebnridgway 995b496ddf Add suppressions to the XML dump (#1166)
* Added parsing suppressions from dump xml.

* Added code to dump suppressions to an xml file

* Added declaration for dump function

* Suppressions will now be written to the xml file when a dump is requested

* Fixed syntax error

* Removed excess whitespace

* Fixed indentation to be consistent

* Fixed indentation to be consistent

* Fixed indentation to be consistent

* Added missing include for ErrorLogger::toXml

* Fixed suggestions from pull request #1166

Switched to using ranged for loop to iterate through suppressions.
Made the line number attribute optional, rather than 0 if not specified.  This means when Python deserialises it it will be None, which is more pythonic.

* Implemented checking suppressions in reportError

This modification expects suppressions and a function to be called to write a line of output to be passed in.  The function checks if any of the suppressions match the warning (with the new Suppression.isMatch function) and if so returns None.  This change maintains the old behaviour of returning the warning text, but adds the possibility of returning None if the warning was suppressed.

* Fixed code quality warnings

* Removed more extraneous whitespace
2018-04-24 22:19:24 +02:00
..
test misra.py: fix false positives in 16.3 for unconditional blocks of code 2018-04-24 09:28:24 +02:00
y2038 Set executable bit for addons/ python scripts 2018-03-20 20:54:59 +01:00
cert.py cert.py: Fix FP 2018-04-12 20:23:50 +02:00
cppcheckdata.doxyfile Fix some typos in comments (found by codespell) 2016-11-27 11:40:42 +01:00
cppcheckdata.py Add suppressions to the XML dump (#1166) 2018-04-24 22:19:24 +02:00
findcasts.py Set executable bit for addons/ python scripts 2018-03-20 20:54:59 +01:00
misc.py misc.py: removed bailouts 2018-04-20 08:18:49 +02:00
misra.py misra.py: fix false positives in 16.3 for unconditional blocks of code 2018-04-24 09:28:24 +02:00
naming.py Set executable bit for addons/ python scripts 2018-03-20 20:54:59 +01:00
threadsafety.py Set executable bit for addons/ python scripts 2018-03-20 20:54:59 +01:00