llvm-project/clang/test/Analysis/Inputs
Devin Coughlin 0a53fdf00c [analyzer] Suppress false positives in std::shared_ptr
The analyzer does not model C++ temporary destructors completely and so
reports false alarms about leaks of memory allocated by the internals of
shared_ptr:

  std::shared_ptr<int> p(new int(1));
  p = nullptr; // 'Potential leak of memory pointed to by field __cntrl_'

This patch suppresses all diagnostics where the end of the path is inside
a method in std::shared_ptr.

It also reorganizes the tests for suppressions in the C++ standard library
to use a separate simulated header for library functions with bugs
that were deliberately inserted to test suppression. This will prevent
other tests from using these as models.

rdar://problem/23652766

llvm-svn: 274691
2016-07-06 21:52:55 +00:00
..
Models
qt-simulator.h [analyzer] Fix false warning about memory leak for QApplication::postEvent 2016-01-06 00:32:56 +00:00
system-header-simulator-cxx-std-suppression.h [analyzer] Suppress false positives in std::shared_ptr 2016-07-06 21:52:55 +00:00
system-header-simulator-cxx.h [analyzer] Suppress false positives in std::shared_ptr 2016-07-06 21:52:55 +00:00
system-header-simulator-for-malloc.h
system-header-simulator-for-nullability.h [analyzer] Nullability: Don't warn along paths where null returned from non-null. 2016-03-28 20:30:25 +00:00
system-header-simulator-for-objc-dealloc.h [analyzer] Add CIFIlter modeling to DeallocChecker. 2016-03-25 21:18:22 +00:00
system-header-simulator-for-pthread-lock.h [analyzer] Fix pthread lock tests so that the API comes from a system header. 2014-09-10 16:17:42 +00:00
system-header-simulator-for-simple-stream.h
system-header-simulator-objc.h
system-header-simulator.h [analyzer] Add VforkChecker to find unsafe code in vforked process. 2015-11-06 11:16:31 +00:00