From 69b664dfd7467b9613b0fbc16def83e906d01bbe Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sun, 27 Jan 2013 11:09:41 +0000 Subject: Revert r173586 (and r173587) , "Attach any tag type's documentation to its typedef if" It caused unexpected warnings with @tparam. llvm-svn: 173614 --- clang/lib/AST/ASTContext.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'clang/lib/AST/ASTContext.cpp') diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 1539b00939e..7ba64e32f35 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -428,12 +428,12 @@ comments::FullComment *ASTContext::getCommentForDecl( return cloneFullComment(FC, D); } else if (const TypedefDecl *TD = dyn_cast(D)) { - // Attach any tag type's documentation to its typedef if latter + // Attach enum's documentation to its typedef if latter // does not have one of its own. QualType QT = TD->getUnderlyingType(); - if (const TagType *TT = QT->getAs()) - if (const Decl *TD = TT->getDecl()) - if (comments::FullComment *FC = getCommentForDecl(TD, PP)) + if (const EnumType *ET = QT->getAs()) + if (const EnumDecl *ED = ET->getDecl()) + if (comments::FullComment *FC = getCommentForDecl(ED, PP)) return cloneFullComment(FC, D); } return NULL; -- cgit v1.2.3