VisitTypeLoc twice for qualified types, once for the qualified form
and once for the unqualified (though they looked the same by the time
we got to visittypeloc). Now only visit once, which matches previous
behavior.
Reviewed by nlewycky
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107754
91177308-0d34-0410-b5e6-
96231b3b80d8
return true; \
}
-DEF_TRAVERSE_TYPELOC(QualifiedTypeLoc, {
- TRY_TO(TraverseTypeLoc(TL.getUnqualifiedLoc()));
- })
+template<typename Derived> \
+bool RecursiveASTVisitor<Derived>::TraverseQualifiedTypeLoc(
+ QualifiedTypeLoc TL) {
+ // Move this over to the 'main' typeloc tree.
+ return TraverseTypeLoc(TL.getUnqualifiedLoc());
+}
DEF_TRAVERSE_TYPELOC(BuiltinTypeLoc, { })