Permalink
Commits on Apr 25, 2018
  1. SymbolDatabase: Disable code for function pointers

    danmar committed Apr 25, 2018
    This hopefully fixes all Travis crashes when running cppcheck:
    [./test/Analysis/stack-addr-ps.c] (error) Internal error: Child process crashed with signal 11 [cppcheckError]
    [./test/Index/complete-pointer-and-reference-to-functions.cpp] (error) Internal error: Child process crashed with signal 11 [cppcheckError]
    [./test/SemaCXX/vararg-non-pod.cpp] (error) Internal error: Child process crashed with signal 11 [cppcheckError]
  2. Escaped filename, which can contain invalid xml (#1192)

    rebnridgway authored and danmar committed Apr 25, 2018
  3. Travis: Fix segmentation fault

    danmar committed Apr 25, 2018
  4. SymbolDatabase: Refactoring parsing of ) ... in functions

    danmar committed Apr 25, 2018
  5. Fix Cppcheck warning

    danmar committed Apr 25, 2018
  6. SymbolDatabase: Refactoring, move logic from SymbolDatabase to Functi…

    danmar committed Apr 25, 2018
    …on class. Add a Function::isOverride() method.
  7. update doxygen comments

    danmar committed Apr 25, 2018
  8. std.cfg: Add some missing C++11 declarations comments and not-bool at…

    versat committed Apr 25, 2018
    …tributes (#1183)
  9. std.cfg: Fix minsize configuration for vsprintf (#1188)

    versat authored and amai2012 committed Apr 25, 2018
    minsize with argvalue for arg 2 which is a char pointer makes no sense.
    Changing it to minsize with strlen for arg 2 results in false positives
    (and i think false negatives too).
    In std.c a test with a valid vsprintf usage is added that would result
    in a FP when minsize with strlen for arg 2 would be used.
Commits on Apr 24, 2018
  1. SymbolDatabase: fix problem where definition coudn't find forward dec…

    IOBYTE authored and danmar committed Apr 24, 2018
    …laration in class (#1190)
  2. CheckClass: Undo the rule of 3 checker to avoid some warnings

    danmar committed Apr 24, 2018
  3. Add suppressions to the XML dump (#1166)

    rebnridgway authored and danmar committed Apr 24, 2018
    * 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
  4. CheckClass: Tweak rule of 3 checker

    danmar committed Apr 24, 2018
  5. Refactoring; use range for

    danmar committed Apr 24, 2018
  6. Refactoring: Use range for loop

    danmar committed Apr 24, 2018
  7. Refactoring; Use range for

    danmar committed Apr 24, 2018
  8. qt.cfg: Add some functions used in the GUI, remove redundant const (#…

    versat committed Apr 24, 2018
  9. daca2: remove {code} in results

    danmar committed Apr 24, 2018
  10. CheckClass: Changed checker for 'copy constructor' and 'operator=' to…

    danmar committed Apr 24, 2018
    … a 'rule of 3' checker
  11. SymbolDatabase: Refactoring and testing isImplicitlyVirtual

    danmar committed Apr 24, 2018
  12. SymbolDatabase: Improve doxygen comments

    danmar committed Apr 24, 2018
  13. qt.cfg: Add more QString:: methods, fix errors. (#1185)

    versat committed Apr 24, 2018
    Additionally fix QString::sprintf() and QString::asprintf()
    configurations.
    
    Fix typo in quin[i]tptr.
    
    Add warning for QString::sprintf and QString::vsprintf.
    These functions are obsolete since Qt5, see
    https://doc.qt.io/qt-5/qstring-obsolete.html
  14. Refactoring; use range for loops

    danmar committed Apr 24, 2018
  15. errorlogger: fix handling of {inconclusive}

    danmar committed Apr 24, 2018
  16. daca2: remove 'inconclusive' keyword

    danmar committed Apr 24, 2018
  17. Refactoring; use range for loop

    danmar committed Apr 24, 2018
  18. misra.py: fix false positives in 16.3 for unconditional blocks of code

    danmar committed Apr 24, 2018
Commits on Apr 23, 2018
  1. SymbolDatabase: Better type lookup in methods

    danmar committed Apr 23, 2018
  2. minor refactorings in SymbolDatabase

    danmar committed Apr 23, 2018
  3. Visual Studio: testrunner: Add missing testastutils (#1186)

    versat authored and amai2012 committed Apr 23, 2018
  4. Refactoring: After conditional return the 'else' is not needed

    danmar committed Apr 23, 2018
  5. Refactoring, use early continue

    danmar committed Apr 23, 2018
  6. --template: fixed {code} output with tabs

    danmar committed Apr 23, 2018
  7. manual: updated documentation for --template and --template-location

    danmar committed Apr 23, 2018
  8. Merge branch 'master' of https://www.github.com/danmar/cppcheck

    orbitcowboy committed Apr 23, 2018