compilerplugins/clang/redundantcast.cxx | 9 +++++++++ 1 file changed, 9 insertions(+)
New commits: commit 3dda91dda8764adb3f6cc229236281bb270bba92 Author: Stephan Bergmann <sberg...@redhat.com> Date: Tue May 30 14:39:23 2017 +0200 Traverse InitListExpr only once Arbitrarily chosing to traverse the semantic instead of the syntactic form. Change-Id: Id1b4e49421a5550bb2fa9f0d7e6f83bf7abb6ebb diff --git a/compilerplugins/clang/redundantcast.cxx b/compilerplugins/clang/redundantcast.cxx index 6a554a774ee2..4ffef355bd6a 100644 --- a/compilerplugins/clang/redundantcast.cxx +++ b/compilerplugins/clang/redundantcast.cxx @@ -79,6 +79,15 @@ public: } } + bool TraverseInitListExpr( + InitListExpr * expr, DataRecursionQueue * queue = nullptr) + { + return WalkUpFromInitListExpr(expr) + && TraverseSynOrSemInitListExpr( + expr->isSemanticForm() ? expr : expr->getSemanticForm(), + queue); + } + bool VisitImplicitCastExpr(ImplicitCastExpr const * expr); bool VisitCXXStaticCastExpr(CXXStaticCastExpr const * expr); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits