]> granicus.if.org Git - clang/commitdiff
RAV reunification: MSPropertyRefExpr visitation
authorAlp Toker <alp@nuanti.com>
Sun, 18 May 2014 21:01:45 +0000 (21:01 +0000)
committerAlp Toker <alp@nuanti.com>
Sun, 18 May 2014 21:01:45 +0000 (21:01 +0000)
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

include/clang/AST/DataRecursiveASTVisitor.h

index 8462681a6b44e3c148caafb1a2b82dddf35ef3d5..aba68afcca975950f73d85cc17588a1bdcab8d07 100644 (file)
@@ -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 <typename Derived>
@@ -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, {})