From: Alp Toker Date: Sun, 18 May 2014 21:01:45 +0000 (+0000) Subject: RAV reunification: MSPropertyRefExpr visitation X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cea7244f3d6e9ac7fb25d3f4b02316b48670ca04;p=clang RAV reunification: MSPropertyRefExpr visitation r179585 introduced different MSPropertyRefExpr visitation for RAV and DRAV that appears to have been unintentional. Let's use the more complete one. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209101 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DataRecursiveASTVisitor.h b/include/clang/AST/DataRecursiveASTVisitor.h index 8462681a6b..aba68afcca 100644 --- a/include/clang/AST/DataRecursiveASTVisitor.h +++ b/include/clang/AST/DataRecursiveASTVisitor.h @@ -990,10 +990,10 @@ DEF_TRAVERSE_TYPELOC(MemberPointerType, { TRY_TO(TraverseTypeLoc(TL.getPointeeLoc())); }) -DEF_TRAVERSE_TYPELOC(DecayedType, +DEF_TRAVERSE_TYPELOC(AdjustedType, { TRY_TO(TraverseTypeLoc(TL.getOriginalLoc())); }) -DEF_TRAVERSE_TYPELOC(AdjustedType, +DEF_TRAVERSE_TYPELOC(DecayedType, { TRY_TO(TraverseTypeLoc(TL.getOriginalLoc())); }) template @@ -2047,6 +2047,10 @@ DEF_TRAVERSE_STMT(CXXTypeidExpr, { TRY_TO(TraverseTypeLoc(S->getTypeOperandSourceInfo()->getTypeLoc())); }) +DEF_TRAVERSE_STMT(MSPropertyRefExpr, { + TRY_TO(TraverseNestedNameSpecifierLoc(S->getQualifierLoc())); +}) + DEF_TRAVERSE_STMT(CXXUuidofExpr, { // The child-iterator will pick up the arg if it's an expression, // but not if it's a type. @@ -2195,7 +2199,6 @@ DEF_TRAVERSE_STMT(UnresolvedMemberExpr, { } }) -DEF_TRAVERSE_STMT(MSPropertyRefExpr, {}) DEF_TRAVERSE_STMT(SEHTryStmt, {}) DEF_TRAVERSE_STMT(SEHExceptStmt, {}) DEF_TRAVERSE_STMT(SEHFinallyStmt, {})