Comment AST: Add support for variable templates
authorAaron Puchert <aaron.puchert@sap.com>
Tue, 9 Nov 2021 21:24:44 +0000 (22:24 +0100)
committerAaron Puchert <aaron.puchert@sap.com>
Tue, 9 Nov 2021 21:30:09 +0000 (22:30 +0100)
commit63ef0e17e28827eae53133b3467bdac7d9729318
tree697bcdb6a684ad413b858b04ffcd094cae528fe5
parent4d6382430066465774f6f696ea3f4c402da1d705
Comment AST: Add support for variable templates

We treat them as variables of course, though if they have function
pointer type we treat them as functions, i.e. allow parameter and return
value specifications. Just like VarDecls.

Reviewed By: gribozavr2

Differential Revision: https://reviews.llvm.org/D111266
clang/include/clang/AST/Comment.h
clang/lib/AST/Comment.cpp
clang/test/Sema/warn-documentation.cpp