[analyzer] Warning for default constructed unique_ptr dereference
authorNithin Vadukkumchery Rajendrakumar <vrnithinkumar@gmail.com>
Fri, 26 Jun 2020 00:31:20 +0000 (02:31 +0200)
committerNithin Vadukkumchery Rajendrakumar <vrnithinkumar@gmail.com>
Wed, 8 Jul 2020 07:51:02 +0000 (09:51 +0200)
commit20e271a98de5609e22766e56f9c374b150f06982
treef0828947e1545f802534c19d5b231e7eda412a49
parentedc7da24057b22896dc6522d3f98ccdd75a4e7f8
[analyzer] Warning for default constructed unique_ptr dereference

Summary: Add support for warning incase of default constructed unique pointer dereferences

Reviewed By: NoQ, Szelethus, vsavchenko, xazax.hun

Tags: #clang

Differential Revision: https://reviews.llvm.org/D81315
clang/docs/analyzer/checkers.rst
clang/include/clang/StaticAnalyzer/Checkers/Checkers.td
clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt
clang/lib/StaticAnalyzer/Checkers/SmartPtr.h [new file with mode: 0644]
clang/lib/StaticAnalyzer/Checkers/SmartPtrChecker.cpp [new file with mode: 0644]
clang/lib/StaticAnalyzer/Checkers/SmartPtrModeling.cpp
clang/test/Analysis/Inputs/system-header-simulator-cxx.h
clang/test/Analysis/analyzer-config.c
clang/test/Analysis/smart-ptr.cpp
clang/test/Analysis/use-after-move.cpp