HomePhabricator

[analyzer] PR41269: Add a bit of C++ smart pointer modeling.

Authored by dergachev.a on Apr 22 2019, 7:45 PM.

Description

[analyzer] PR41269: Add a bit of C++ smart pointer modeling.

Implement cplusplus.SmartPtrModeling, a new checker that doesn't
emit any warnings but models methods of smart pointers more precisely.

For now the only thing it does is make (bool) P return false when P
is a freshly moved pointer. This addresses a false positive in the
use-after-move-checker.

Differential Revision: https://reviews.llvm.org/D60796

llvm-svn: 358944

Details

Committed
dergachev.aApr 22 2019, 7:45 PM
Differential Revision
D60796: [analyzer] PR41269: SmartPtrModeling.
Parents
rG32c0ebe61577: Use llvm::stable_sort
Branches
Unknown
Tags
Unknown