[PATCH] D71140: [Wdocumentation] Properly place deprecated attribute

Mark de Wever via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 6 12:06:35 PST 2019


Mordante created this revision.
Mordante added a reviewer: gribozavr2.
Mordante added a project: clang.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71140

Files:
  clang/lib/AST/CommentSema.cpp
  clang/test/Sema/warn-documentation-fixits.cpp
  clang/test/Sema/warn-documentation.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71140.232625.patch
Type: text/x-patch
Size: 8651 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191206/7502cff4/attachment-0001.bin>


More information about the cfe-commits mailing list