diff options
author | Artem Dergachev <artem.dergachev@gmail.com> | 2018-03-22 22:05:53 +0000 |
---|---|---|
committer | Artem Dergachev <artem.dergachev@gmail.com> | 2018-03-22 22:05:53 +0000 |
commit | 3761e7a4be8138095d333dd6e0f09eccdb566de5 (patch) | |
tree | db79226f0243be27ef059cb8e05a4a70f1e57868 /clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp | |
parent | 579507a53ad6f2fd384a139f8e40841a07958bfe (diff) | |
download | bcm5719-llvm-3761e7a4be8138095d333dd6e0f09eccdb566de5.tar.gz bcm5719-llvm-3761e7a4be8138095d333dd6e0f09eccdb566de5.zip |
[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
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp b/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp index d73bab4fe72..65231ea8ce7 100644 --- a/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp +++ b/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp @@ -263,7 +263,7 @@ bool AnalyzerOptions::mayInlineCXXSharedPtrDtor() { bool AnalyzerOptions::mayInlineCXXTemporaryDtors() { return getBooleanOption(InlineCXXTemporaryDtors, "c++-temp-dtor-inlining", - /*Default=*/false); + /*Default=*/true); } bool AnalyzerOptions::mayInlineObjCMethod() { |