summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2013-05-02 15:44:16 +0000
committerFariborz Jahanian <fjahanian@apple.com>2013-05-02 15:44:16 +0000
commit6384fbb28f8ed5161ab5bb1407a7f7866205f192 (patch)
treeb3683c8f7461d9ec61396c691847a3152e286d71 /clang/lib
parent1d29750b7dedb16cb63d0fe5026e199d734d315d (diff)
downloadbcm5719-llvm-6384fbb28f8ed5161ab5bb1407a7f7866205f192.tar.gz
bcm5719-llvm-6384fbb28f8ed5161ab5bb1407a7f7866205f192.zip
[document parsing]: support c++11 type aliases
with no comment of their own to inherit the comment of their aliased type. // rdar://13752382 llvm-svn: 180924
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/ASTContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 49a470eace9..5e9a87c58a7 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -442,7 +442,7 @@ comments::FullComment *ASTContext::getCommentForDecl(
if (comments::FullComment *FC = getCommentForDecl(Overridden[i], PP))
return cloneFullComment(FC, D);
}
- else if (const TypedefDecl *TD = dyn_cast<TypedefDecl>(D)) {
+ else if (const TypedefNameDecl *TD = dyn_cast<TypedefNameDecl>(D)) {
// Attach any tag type's documentation to its typedef if latter
// does not have one of its own.
QualType QT = TD->getUnderlyingType();
OpenPOWER on IntegriCloud