summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-cov/SourceCoverageViewText.cpp
diff options
context:
space:
mode:
authorDevin Coughlin <dcoughlin@apple.com>2016-07-06 21:52:55 +0000
committerDevin Coughlin <dcoughlin@apple.com>2016-07-06 21:52:55 +0000
commit0a53fdf00cc42596e6354fbd2a3490defd0f6272 (patch)
treeb05ae8073bcf5071785c0aa7efcb20837be3c081 /llvm/tools/llvm-cov/SourceCoverageViewText.cpp
parent9639ec1e662903f235483524ab06a9cc9115c482 (diff)
downloadbcm5719-llvm-0a53fdf00cc42596e6354fbd2a3490defd0f6272.tar.gz
bcm5719-llvm-0a53fdf00cc42596e6354fbd2a3490defd0f6272.zip
[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
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageViewText.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud