[analyzer] Enable temporary object destructor inlining by default.
authorArtem Dergachev <artem.dergachev@gmail.com>
Thu, 22 Mar 2018 22:05:53 +0000 (22:05 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Thu, 22 Mar 2018 22:05:53 +0000 (22:05 +0000)
commit3761e7a4be8138095d333dd6e0f09eccdb566de5
treedb79226f0243be27ef059cb8e05a4a70f1e57868
parent579507a53ad6f2fd384a139f8e40841a07958bfe
[analyzer] Enable temporary object destructor inlining by default.

When a temporary is constructed with a proper construction context, it should
be safe to inline the destructor. We have added suppressions for some of the
common false positives caused by such inlining, so there should be - and from my
observations there indeed is - more benefit than harm from enabling destructor
inlining.

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

llvm-svn: 328258
clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
clang/test/Analysis/analyzer-config.cpp