[ASTImporter] Actually test ArrayInitLoopExpr in the array-init-loop-expr test.Summary:The `array-init-loop-expr` test is currently not testing the importing of ArrayInitLoopExprs.This is becaus
[ASTImporter] Actually test ArrayInitLoopExpr in the array-init-loop-expr test.Summary:The `array-init-loop-expr` test is currently not testing the importing of ArrayInitLoopExprs.This is because we import the `S` struct into the `test.cpp` contextand only do a copy-assignment in `test.cpp`, so the actual ArrayInitLoopExpr we wanted toimport is generated by clang directly in the target context. This means we actuallynever test the importing of ArrayInitLoopExpr with this test, which becomes obviouswhen looking at the missing test coverage for the respective VisitArrayInitLoopExpr method.This patch moves the copy-assignment of our struct to the `S.cpp` context, which meansthat `test.cpp` now actually has to import the ArrayInitLoopExpr.Reviewers: a.sidorin, a_sidorinReviewed By: a_sidorinSubscribers: a_sidorin, martong, cfe-commitsDifferential Revision: https://reviews.llvm.org/D51115llvm-svn: 340467
show more ...
[ASTImporter] Add test for ArrayInitLoopExprReviewers: a.sidorin, a_sidorinReviewed By: a_sidorinSubscribers: martong, cfe-commitsDifferential Revision: https://reviews.llvm.org/D50733llvm-
[ASTImporter] Add test for ArrayInitLoopExprReviewers: a.sidorin, a_sidorinReviewed By: a_sidorinSubscribers: martong, cfe-commitsDifferential Revision: https://reviews.llvm.org/D50733llvm-svn: 339831