diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2013-01-26 20:49:30 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-01-26 20:49:30 +0000 |
commit | 6522ad6e77ac2ef4855edf59b3b88e35b518fcd0 (patch) | |
tree | 0e407a7960e00c137fc19cb6db5ffdf0c3ebcbd8 /clang/lib/AST/ASTContext.cpp | |
parent | c22ea1ce88572664732044154674f154612f95dd (diff) | |
download | bcm5719-llvm-6522ad6e77ac2ef4855edf59b3b88e35b518fcd0.tar.gz bcm5719-llvm-6522ad6e77ac2ef4855edf59b3b88e35b518fcd0.zip |
Attach any tag type's documentation to its typedef if
latter does not have one of its own. // rdar://13067629
llvm-svn: 173586
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r-- | clang/lib/AST/ASTContext.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 7ba64e32f35..91073077002 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -431,9 +431,9 @@ comments::FullComment *ASTContext::getCommentForDecl( // Attach enum's documentation to its typedef if latter // does not have one of its own. QualType QT = TD->getUnderlyingType(); - if (const EnumType *ET = QT->getAs<EnumType>()) - if (const EnumDecl *ED = ET->getDecl()) - if (comments::FullComment *FC = getCommentForDecl(ED, PP)) + if (const TagType *TT = QT->getAs<TagType>()) + if (const Decl *TD = TT->getDecl()) + if (comments::FullComment *FC = getCommentForDecl(TD, PP)) return cloneFullComment(FC, D); } return NULL; |