This is an archive of the discontinued LLVM Phabricator instance.

[Wdocumentation] Properly place deprecated attribute
ClosedPublic

Authored by Mordante on Dec 6 2019, 12:02 PM.

Details

Summary

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

Diff Detail

Event Timeline

Mordante created this revision.Dec 6 2019, 12:02 PM
gribozavr2 accepted this revision.Dec 9 2019, 5:44 AM
gribozavr2 added inline comments.
clang/test/Sema/warn-documentation-fixits.cpp
83

Since you depend on c++14 in the test, please add an extra RUN line for c++14.

This revision is now accepted and ready to land.Dec 9 2019, 5:44 AM
Mordante marked 2 inline comments as done.Dec 9 2019, 12:30 PM
Mordante added inline comments.
clang/test/Sema/warn-documentation-fixits.cpp
4

I added one here, is this what you wanted or one for the RUN at line 1?

gribozavr2 marked an inline comment as done.Dec 9 2019, 2:15 PM
gribozavr2 added inline comments.
clang/test/Sema/warn-documentation-fixits.cpp
4

This looks good. We're testing the default language mode like every other test, and c++11 and c++14 specifically because there's special logic for them.

This revision was automatically updated to reflect the committed changes.