[PATCH] D139935: [NFC] [Doc] Fix example for AnnotateTypeDocs
Xiang Li via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 13 07:21:01 PST 2022
python3kgae created this revision.
python3kgae added reviewers: mboehme, aaron.ballman, erichkeane.
Herald added a project: All.
python3kgae requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
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")]] *);
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D139935
Files:
clang/include/clang/Basic/AttrDocs.td
Index: clang/include/clang/Basic/AttrDocs.td
===================================================================
--- clang/include/clang/Basic/AttrDocs.td
+++ clang/include/clang/Basic/AttrDocs.td
@@ -6679,7 +6679,7 @@
.. code-block:: c++
- int* [[clang::annotate("category1", "foo", 1)]] f(int[[clang::annotate("category2")]] *);
+ int* [[clang::annotate_type("category1", "foo", 1)]] f(int[[clang::annotate_type("category2")]] *);
The attribute does not have any effect on the semantics of the type system,
neither type checking rules, nor runtime semantics. In particular:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139935.482467.patch
Type: text/x-patch
Size: 587 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221213/f4525d3c/attachment.bin>
More information about the cfe-commits
mailing list