[PATCH] D32176: Add #pragma clang attribute support for the external_source_symbol attribute

Alex Lorenz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 18 09:39:52 PDT 2017


arphaman created this revision.

Right now the `external_source_symbol` attribute isn't supported by `#pragma clang attribute` for the following two reasons:

- The `Named` attribute subject isn't supported by TableGen.
- There was no way to specify a subject match rule for `#pragma clang attribute` that could operate on a set of attribute subjects (e.g. the ones that derive from `NamedDecl`).

This patch fixes the two issues and thus adds `external_source_symbol` support to `#pragma clang attribute`,


Repository:
  rL LLVM

https://reviews.llvm.org/D32176

Files:
  include/clang/Basic/Attr.td
  lib/Sema/SemaDeclAttr.cpp
  test/Misc/pragma-attribute-supported-attributes-list.test
  utils/TableGen/ClangAttrEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32176.95592.patch
Type: text/x-patch
Size: 13352 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170418/1bb999f8/attachment-0001.bin>


More information about the cfe-commits mailing list