[all-commits] [llvm/llvm-project] ad48e9: [NFC] [Doc] Fix example for AnnotateTypeDocs

Xiang Li via All-commits all-commits at lists.llvm.org
Thu Jan 5 13:32:40 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ad48e9669a80e05c55e35970461b34f04dc0f117
      https://github.com/llvm/llvm-project/commit/ad48e9669a80e05c55e35970461b34f04dc0f117
  Author: Xiang Li <python3kgae at outlook.com>
  Date:   2023-01-05 (Thu, 05 Jan 2023)

  Changed paths:
    M clang/include/clang/Basic/AttrDocs.td

  Log Message:
  -----------
  [NFC] [Doc] Fix example for AnnotateTypeDocs

Change clang::annotate into clang::annotate_type.

The example will get error like
error: 'annotate' attribute cannot be applied to types
int* [[clang::annotate("category1", "foo", 1)]] f(int[[clang::annotate("category2")]] *);

Reviewed By: aaron.ballman

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




More information about the All-commits mailing list