mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 21:53:12 +08:00
[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
This commit is contained in:
@@ -6705,7 +6705,7 @@ For example:
|
||||
|
||||
.. 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:
|
||||
|
||||
Reference in New Issue
Block a user