[Wdocumentation] Use C2x/C++14 deprecated attribute
authorMark de Wever <koraq@xs4all.nl>
Tue, 10 Dec 2019 17:32:30 +0000 (18:32 +0100)
committerMark de Wever <koraq@xs4all.nl>
Tue, 10 Dec 2019 20:16:18 +0000 (21:16 +0100)
commitb6d386f6f996394ec24c5d0ebe84131c89237594
treefe382b344bfba6035a1f4e178816472f6e830f48
parentb972f2d05e8b39dd84e586756e7078d79134e2fb
[Wdocumentation] Use C2x/C++14 deprecated attribute

This replaces the non-standard __attribute__((deprecated)) with the
standard [[deprecated]] when compiling in C2x/C++14 mode.

Discovered while looking at https://bugs.llvm.org/show_bug.cgi?id=43753

Differential Revision: https://reviews.llvm.org/D71141
clang/lib/AST/CommentSema.cpp
clang/test/Sema/warn-documentation-fixits.c [new file with mode: 0644]
clang/test/Sema/warn-documentation-fixits.cpp
clang/test/Sema/warn-documentation.cpp