r209101 - RAV reunification: MSPropertyRefExpr visitation

Alp Toker alp at nuanti.com
Sun May 18 14:01:45 PDT 2014


Author: alp
Date: Sun May 18 16:01:45 2014
New Revision: 209101

URL: http://llvm.org/viewvc/llvm-project?rev=209101&view=rev
Log:
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.

Modified:
    cfe/trunk/include/clang/AST/DataRecursiveASTVisitor.h

Modified: cfe/trunk/include/clang/AST/DataRecursiveASTVisitor.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DataRecursiveASTVisitor.h?rev=209101&r1=209100&r2=209101&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DataRecursiveASTVisitor.h (original)
+++ cfe/trunk/include/clang/AST/DataRecursiveASTVisitor.h Sun May 18 16:01:45 2014
@@ -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, {})





More information about the cfe-commits mailing list