From 49fdf8d3f5e114e6f8b49fde29a30b0eaaa3c5dd Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Sat, 15 Sep 2012 21:13:36 +0000 Subject: Comment parsing: don't treat typedef to a typedef to a function as a 'function-like' type that can be annotated with \param. Thanks to Eli Friedman for noticing! llvm-svn: 163985 --- clang/lib/AST/Comment.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'clang/lib/AST/Comment.cpp') diff --git a/clang/lib/AST/Comment.cpp b/clang/lib/AST/Comment.cpp index a6a21f3923a..4336885d394 100644 --- a/clang/lib/AST/Comment.cpp +++ b/clang/lib/AST/Comment.cpp @@ -253,14 +253,6 @@ void DeclInfo::fill() { TypeLoc TL = TSI->getTypeLoc().getUnqualifiedLoc(); while (true) { TL = TL.IgnoreParens(); - // Look through typedefs. - if (TypedefTypeLoc *TypedefTL = dyn_cast(&TL)) { - TSI = TypedefTL->getTypedefNameDecl()->getTypeSourceInfo(); - if (TSI) - break; - TL = TSI->getTypeLoc().getUnqualifiedLoc(); - continue; - } // Look through qualified types. if (QualifiedTypeLoc *QualifiedTL = dyn_cast(&TL)) { TL = QualifiedTL->getUnqualifiedLoc(); -- cgit v1.2.3