diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-09-15 21:13:36 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-09-15 21:13:36 +0000 |
commit | 49fdf8d3f5e114e6f8b49fde29a30b0eaaa3c5dd (patch) | |
tree | 763423b9c1951d19875f6de8835ee6e0419f7d2b /clang/lib/AST/Comment.cpp | |
parent | 8d30240939480e383d473b788506400e4514a9b3 (diff) | |
download | llvm-49fdf8d3f5e114e6f8b49fde29a30b0eaaa3c5dd.zip llvm-49fdf8d3f5e114e6f8b49fde29a30b0eaaa3c5dd.tar.gz llvm-49fdf8d3f5e114e6f8b49fde29a30b0eaaa3c5dd.tar.bz2 |
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
Diffstat (limited to 'clang/lib/AST/Comment.cpp')
-rw-r--r-- | clang/lib/AST/Comment.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/AST/Comment.cpp b/clang/lib/AST/Comment.cpp index a6a21f3..4336885 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<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(); |