llvm-project/clang/test/Analysis/diagnostics
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
..
Inputs/include
deref-track-symbolic-region.c [analyzer] Bug identification 2015-10-22 11:53:04 +00:00
deref-track-symbolic-region.cpp
explicit-suppression.cpp [analyzer] Invalidate destination of std::copy() and std::copy_backward(). 2016-02-07 16:55:44 +00:00
false-positive-suppression.c
implicit-cxx-std-suppression.cpp [analyzer] Suppress false positives in std::shared_ptr 2016-07-06 21:52:55 +00:00
no-prune-paths.c
report-issues-within-main-file.cpp [analyzer] Fix IssueHash generation. 2015-12-01 09:00:41 +00:00
shortest-path-suppression.c
text-diagnostics.c
undef-value-callee.h
undef-value-caller.c [analyzer] Bug identification 2015-10-22 11:53:04 +00:00
undef-value-param.c [analyzer] Bug identification 2015-10-22 11:53:04 +00:00
undef-value-param.m [analyzer] Bug identification 2015-10-22 11:53:04 +00:00