[Sema][Comments] Add support for TypeAliasTemplate
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 25 Aug 2016 17:09:33 +0000 (17:09 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 25 Aug 2016 17:09:33 +0000 (17:09 +0000)
commit6080bdbec370d0d1f4202ce2d21e1ed4b090c6ff
treebe8ab7eb55453588b7efd0a62ab568e3df7604b8
parentebbd8a9ef3824f4e5f45ed3eefb9be7ac7be1565
[Sema][Comments] Add support for TypeAliasTemplate

Emit proper diagnostics when -Wdocumentation is used with constructs such as:

  template<typename T>
  using fn = int(T aaa, int ccc);

Previously clang wouldn't recognize the function and complain with
'comment that is not attached to a function declaration'.

Differential Revision: https://reviews.llvm.org/D23860

rdar://problem/27300695

llvm-svn: 279754
clang/lib/AST/Comment.cpp
clang/test/Sema/warn-documentation.cpp