[PATCH] D13133: Remove dangling parenthesis.

Angel Garcia via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 24 07:50:07 PDT 2015

angelgarcia added a comment.

Usage.Expression can be:
-CXXMemberCallExpr: "container.at(i)"
-CXXOperatorCallExpr: "*it" or "container[i]"
-ArraySubscripExpr: "Arr[i]"
-UnaryOperator: "*ptr"
-MemberExpr: "it->member" (we only replace "it->" with "elem." in this

The point is that all of them except the last one will be replaced by
"elem" (or any other identifier), so it will be a DeclRefExpr after the
change, and the parenthesis can always be removed. I can add a comment
explaining this.


More information about the cfe-commits mailing list