[Wdocumentation] Properly place deprecated attribute
authorMark de Wever <koraq@xs4all.nl>
Tue, 10 Dec 2019 17:32:29 +0000 (18:32 +0100)
committerMark de Wever <koraq@xs4all.nl>
Tue, 10 Dec 2019 20:16:12 +0000 (21:16 +0100)
commitb972f2d05e8b39dd84e586756e7078d79134e2fb
tree72009be491d0b77bfbd927e58b2d7203cc10c07f
parent85fff898bb3175693e12536a837c8ad0ec8b2cdd
[Wdocumentation] Properly place deprecated attribute

It is now placed before the function:
- allows to replace __attribute__((deprecated)) with [[deprecated]].
- required for trailing returns.

Fixes bug: https://bugs.llvm.org/show_bug.cgi?id=43753

Differential Revision: https://reviews.llvm.org/D71140
clang/lib/AST/CommentSema.cpp
clang/test/Sema/warn-documentation-fixits.cpp
clang/test/Sema/warn-documentation.cpp