[all-commits] [llvm/llvm-project] 665da1: [Clang] Add the `annotate_type` attribute

martinboehme via All-commits all-commits at lists.llvm.org
Wed Jun 15 00:47:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 665da187ccf338bad1560e8a960e8feaebb5c9d9
      https://github.com/llvm/llvm-project/commit/665da187ccf338bad1560e8a960e8feaebb5c9d9
  Author: Martin Boehme <mboehme at google.com>
  Date:   2022-06-15 (Wed, 15 Jun 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/AttrDocs.td
    M clang/include/clang/Sema/Sema.h
    M clang/lib/AST/TypePrinter.cpp
    M clang/lib/Parse/ParseDecl.cpp
    M clang/lib/Sema/SemaAttr.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/lib/Sema/SemaType.cpp
    A clang/test/AST/attr-annotate-type.c
    A clang/test/CodeGenCXX/annotate-type.cpp
    A clang/test/Sema/annotate-type.c
    A clang/test/SemaCXX/annotate-type.cpp
    M clang/unittests/AST/AttrTest.cpp

  Log Message:
  -----------
  [Clang] Add the `annotate_type` attribute

This is an analog to the `annotate` attribute but for types. The intent is to allow adding arbitrary annotations to types for use in static analysis tools.

For details, see this RFC:

https://discourse.llvm.org/t/rfc-new-attribute-annotate-type-iteration-2/61378

Reviewed By: aaron.ballman

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




More information about the All-commits mailing list