aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Comment.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-09-15 21:13:36 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-09-15 21:13:36 +0000
commitec504e0d677594fe975e29b25d6d47be54038baf (patch)
tree5864a36c2b19336a69286f9acced8619dd449942 /lib/AST/Comment.cpp
parentf56faa01936b9cf909623d7f06e3c2569ca4a78e (diff)
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! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Comment.cpp')
-rw-r--r--lib/AST/Comment.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/AST/Comment.cpp b/lib/AST/Comment.cpp
index a6a21f3923..4336885d39 100644
--- a/lib/AST/Comment.cpp
+++ b/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<TypedefTypeLoc>(&TL)) {
- TSI = TypedefTL->getTypedefNameDecl()->getTypeSourceInfo();
- if (TSI)
- break;
- TL = TSI->getTypeLoc().getUnqualifiedLoc();
- continue;
- }
// Look through qualified types.
if (QualifiedTypeLoc *QualifiedTL = dyn_cast<QualifiedTypeLoc>(&TL)) {
TL = QualifiedTL->getUnqualifiedLoc();