]> granicus.if.org Git - clang/commitdiff
Recurse on a TypeLoc rather than a Type for TypedefDecl, now that the
authorCraig Silverstein <csilvers2000@yahoo.com>
Fri, 15 Oct 2010 06:51:01 +0000 (06:51 +0000)
committerCraig Silverstein <csilvers2000@yahoo.com>
Fri, 15 Oct 2010 06:51:01 +0000 (06:51 +0000)
typloc information is available (I don't think it was, originally).
Submitted as a 'trivial' change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116568 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/RecursiveASTVisitor.h

index cb617f14e000fb09bb3ca638537de69aad022faf..101a850f6127796c0cad4c81d272731060cfe630 100644 (file)
@@ -1251,7 +1251,7 @@ DEF_TRAVERSE_DECL(TemplateTypeParmDecl, {
   })
 
 DEF_TRAVERSE_DECL(TypedefDecl, {
-    TRY_TO(TraverseType(D->getUnderlyingType()));
+    TRY_TO(TraverseTypeLoc(D->getTypeSourceInfo()->getTypeLoc()));
     // We shouldn't traverse D->getTypeForDecl(); it's a result of
     // declaring the typedef, not something that was written in the
     // source.