[all-commits] [llvm/llvm-project] 75d4d4: Add an attribute registry so plugins can add attri...

john-brawn-arm via All-commits all-commits at lists.llvm.org
Thu Feb 27 09:26:18 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 75d4d4bd028f6a5f24ef41dbbc45bed65b2305cf
      https://github.com/llvm/llvm-project/commit/75d4d4bd028f6a5f24ef41dbbc45bed65b2305cf
  Author: John Brawn <john.brawn at arm.com>
  Date:   2020-02-27 (Thu, 27 Feb 2020)

  Changed paths:
    M clang/include/clang/Basic/AttributeCommonInfo.h
    M clang/include/clang/Sema/ParsedAttr.h
    M clang/lib/Basic/Attributes.cpp
    M clang/lib/Sema/ParsedAttr.cpp
    M clang/utils/TableGen/ClangAttrEmitter.cpp

  Log Message:
  -----------
  Add an attribute registry so plugins can add attributes

When constructing a ParsedAttr the ParsedAttrInfo gets looked up in the
AttrInfoMap, which is auto-generated using tablegen. If that lookup fails then
we look through the ParsedAttrInfos that plugins have added to the registry and
check if any has a spelling that matches.

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




More information about the All-commits mailing list