-
- Downloads
Analyzer: Teach analyzer how to handle TypeTraitExpr
Summary: `TypeTraitExpr`s are not supported by the ExprEngine today. Analyzer creates a sink, and aborts the block. Therefore, certain bugs that involve type traits intrinsics cannot be detected (see PR24710). This patch creates boolean `SVal`s for `TypeTraitExpr`s, which are evaluated by the compiler. Test within the patch is a summary of PR24710. Reviewers: zaks.anna, dcoughlin, krememek Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D12482 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248314 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/StaticAnalyzer/Core/Environment.cpp 1 addition, 0 deletionslib/StaticAnalyzer/Core/Environment.cpp
- lib/StaticAnalyzer/Core/ExprEngine.cpp 2 additions, 2 deletionslib/StaticAnalyzer/Core/ExprEngine.cpp
- lib/StaticAnalyzer/Core/SValBuilder.cpp 5 additions, 0 deletionslib/StaticAnalyzer/Core/SValBuilder.cpp
- test/Analysis/dtor.cpp 36 additions, 1 deletiontest/Analysis/dtor.cpp
Loading
Please register or sign in to comment