summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-05-18 21:01:45 +0000
committerAlp Toker <alp@nuanti.com>2014-05-18 21:01:45 +0000
commit180e327f1cd96d7569f3ff2bb8270bb1ceec7132 (patch)
treec424d25ec86b95691a284aeb629fddc8372287bc
parentb69030a8bd64e766c77cd262b90e66389dc85c3d (diff)
downloadbcm5719-llvm-180e327f1cd96d7569f3ff2bb8270bb1ceec7132.tar.gz
bcm5719-llvm-180e327f1cd96d7569f3ff2bb8270bb1ceec7132.zip
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. llvm-svn: 209101
-rw-r--r--clang/include/clang/AST/DataRecursiveASTVisitor.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/clang/include/clang/AST/DataRecursiveASTVisitor.h b/clang/include/clang/AST/DataRecursiveASTVisitor.h
index 8462681a6b4..aba68afcca9 100644
--- a/clang/include/clang/AST/DataRecursiveASTVisitor.h
+++ b/clang/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 <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, {})
OpenPOWER on IntegriCloud