[PATCH] SemaCXX: Support templates in availability attributes

Duncan P. N. Exon Smith via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 8 20:17:35 PST 2016


This patch adds support for templates in availability attributes.
  - If the context for an availability diagnostic is a
    `FunctionTemplateDecl`, look through it to the `FunctionDecl`.
  - Add `__has_feature(attribute_availability_in_templates)`.

Is there anything else I should be testing to be sure availability
works correctly in templates?  I'm working on a patch to add
availability markup to the libc++ headers, and this is the only
problem I've hit so far.  Anyone have thoughts on other things I
should test?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-SemaCXX-Support-templates-in-availability-attributes.patch
Type: application/octet-stream
Size: 3439 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160208/716707da/attachment.obj>


More information about the cfe-commits mailing list