[all-commits] [llvm/llvm-project] 85fff8: [Wdocumentation] Use the command marker.

mordante via All-commits all-commits at lists.llvm.org
Tue Dec 10 12:16:51 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 85fff898bb3175693e12536a837c8ad0ec8b2cdd
      https://github.com/llvm/llvm-project/commit/85fff898bb3175693e12536a837c8ad0ec8b2cdd
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2019-12-10 (Tue, 10 Dec 2019)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticCommentKinds.td
    M clang/lib/AST/CommentSema.cpp
    M clang/test/Sema/warn-documentation.cpp

  Log Message:
  -----------
  [Wdocumentation] Use the command marker.

Use the proper marker for -Wdocumentation-deprecated-sync instead of
hard-coded the backslash.

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

Differential Revision: https://reviews.llvm.org/D71139


  Commit: b972f2d05e8b39dd84e586756e7078d79134e2fb
      https://github.com/llvm/llvm-project/commit/b972f2d05e8b39dd84e586756e7078d79134e2fb
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2019-12-10 (Tue, 10 Dec 2019)

  Changed paths:
    M clang/lib/AST/CommentSema.cpp
    M clang/test/Sema/warn-documentation-fixits.cpp
    M clang/test/Sema/warn-documentation.cpp

  Log Message:
  -----------
  [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


  Commit: b6d386f6f996394ec24c5d0ebe84131c89237594
      https://github.com/llvm/llvm-project/commit/b6d386f6f996394ec24c5d0ebe84131c89237594
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2019-12-10 (Tue, 10 Dec 2019)

  Changed paths:
    M clang/lib/AST/CommentSema.cpp
    A clang/test/Sema/warn-documentation-fixits.c
    M clang/test/Sema/warn-documentation-fixits.cpp
    M clang/test/Sema/warn-documentation.cpp

  Log Message:
  -----------
  [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


Compare: https://github.com/llvm/llvm-project/compare/9fbfdd2bfe42...b6d386f6f996


More information about the All-commits mailing list