[PATCH] D69360: [NFC] Refactor representation of materialized temporaries
Tyker via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 14 00:50:58 PST 2019
Tyker added inline comments.
================
Comment at: clang/include/clang/AST/RecursiveASTVisitor.h:2642-2643
+ if (S->getLifetimeExtendedTemporaryDecl())
+ TRY_TO(TraverseLifetimeExtendedTemporaryDecl(
+ S->getLifetimeExtendedTemporaryDecl()));
+})
----------------
rsmith wrote:
> ... and we should set `ShouldVisitChildren = false;` here because we already visited the children when visiting the `LifetimeExtendedTemporaryDecl`.
as far as i understanding, `LifetimeExtendedTemporaryDecl` is not listed in the childrens of `MaterializeTemporaryExpr`, it is not returned by `MaterializeTemporaryExpr::children` however the subexpression of `MaterializeTemporaryExpr` is listed in the children and need to be traversed. so i don't think this change is correct.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69360/new/
https://reviews.llvm.org/D69360
More information about the cfe-commits
mailing list