Re-commit "[Temporary] Add an ExprWithCleanups for each C++ MaterializeTemporaryExpr."
Since D21243 fixes relative clang-tidy tests. This reverts commit a71d9fbd41e99def9159af2b01ef6509394eaeed. llvm-svn: 273312
This commit is contained in:
@@ -466,9 +466,15 @@ class ConsumedStmtVisitor : public ConstStmtVisitor<ConsumedStmtVisitor> {
|
||||
MapType PropagationMap;
|
||||
|
||||
InfoEntry findInfo(const Expr *E) {
|
||||
if (auto Cleanups = dyn_cast<ExprWithCleanups>(E))
|
||||
if (!Cleanups->cleanupsHaveSideEffects())
|
||||
E = Cleanups->getSubExpr();
|
||||
return PropagationMap.find(E->IgnoreParens());
|
||||
}
|
||||
ConstInfoEntry findInfo(const Expr *E) const {
|
||||
if (auto Cleanups = dyn_cast<ExprWithCleanups>(E))
|
||||
if (!Cleanups->cleanupsHaveSideEffects())
|
||||
E = Cleanups->getSubExpr();
|
||||
return PropagationMap.find(E->IgnoreParens());
|
||||
}
|
||||
void insertInfo(const Expr *E, const PropagationInfo &PI) {
|
||||
|
||||
Reference in New Issue
Block a user