diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-01-27 11:09:41 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-01-27 11:09:41 +0000 |
commit | 69b664dfd7467b9613b0fbc16def83e906d01bbe (patch) | |
tree | 54456c05b3aa197670afef0d8b5275a0f64e51af /clang/lib/AST/ASTContext.cpp | |
parent | f5c1f555cb5df255e7af9122eb7531b4646db847 (diff) | |
download | bcm5719-llvm-69b664dfd7467b9613b0fbc16def83e906d01bbe.tar.gz bcm5719-llvm-69b664dfd7467b9613b0fbc16def83e906d01bbe.zip |
Revert r173586 (and r173587) , "Attach any tag type's documentation to its typedef if"
It caused unexpected warnings with @tparam.
llvm-svn: 173614
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r-- | clang/lib/AST/ASTContext.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<TypedefDecl>(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<TagType>()) - if (const Decl *TD = TT->getDecl()) - if (comments::FullComment *FC = getCommentForDecl(TD, PP)) + if (const EnumType *ET = QT->getAs<EnumType>()) + if (const EnumDecl *ED = ET->getDecl()) + if (comments::FullComment *FC = getCommentForDecl(ED, PP)) return cloneFullComment(FC, D); } return NULL; |