[all-commits] [llvm/llvm-project] a5b875: Introduce ns_error_domain attribute.

Michael Forster via All-commits all-commits at lists.llvm.org
Thu Aug 13 06:07:52 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a5b8757506b07e3091fe243b6c1e004220d3cba3
      https://github.com/llvm/llvm-project/commit/a5b8757506b07e3091fe243b6c1e004220d3cba3
  Author: Michael Forster <forster at google.com>
  Date:   2020-08-13 (Thu, 13 Aug 2020)

  Changed paths:
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/AttrDocs.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/test/AST/ast-print-attr.c
    M clang/test/Misc/pragma-attribute-supported-attributes-list.test
    A clang/test/Sema/ns_error_enum.m
    M clang/utils/TableGen/ClangAttrEmitter.cpp

  Log Message:
  -----------
  Introduce ns_error_domain attribute.

ns_error_domain can be used by, e.g. NS_ERROR_ENUM, in order to
identify a global declaration representing the domain constant.

Introduces the attribute, Sema handling, diagnostics, and test case.

This is cherry-picked from https://github.com/llvm/llvm-project-staging/commit/a14779f504b02ad0e4dbc39d6d10cadc7ed4cfd0
and adapted to updated Clang APIs.

Reviewed By: gribozavr2, aaron.ballman

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




More information about the All-commits mailing list