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:
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:
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits