Duncan P. N. Exon Smith
ec599a906b
SemaCXX: Support templates in availability attributes
...
If the availability context is `FunctionTemplateDecl`, we should look
through it to the `FunctionDecl`. This prevents a diagnostic in the
following case:
class C __attribute__((unavailable));
template <class T> void foo(C&) __attribute__((unavailable));
This adds tests for availability in templates in many other cases, but
that was the only case that failed before this patch.
I added a feature `__has_feature(attribute_availability_in_templates)`
so users can test for this.
rdar://problem/24561029
llvm-svn: 262050
2016-02-26 19:27:00 +00:00
..
2016-01-29 19:38:18 +00:00
2016-02-01 17:42:01 +00:00
2016-02-25 16:36:26 +00:00
2016-02-10 19:11:58 +00:00
2016-02-01 17:42:01 +00:00
2016-02-24 20:58:14 +00:00
2016-01-30 12:16:23 +00:00
2015-03-19 16:06:49 +00:00
2015-10-02 13:41:04 +00:00
2014-10-15 16:18:20 +00:00
2016-02-10 19:11:58 +00:00
2016-02-10 19:11:58 +00:00
2015-08-31 18:48:39 +00:00
2015-08-18 23:56:00 +00:00
2016-02-12 12:07:04 +00:00
2016-02-15 01:32:36 +00:00
2016-02-26 19:27:00 +00:00
2016-02-24 20:58:14 +00:00
2015-12-29 22:13:13 +00:00
2015-12-29 22:13:13 +00:00
2016-01-28 23:36:05 +00:00
2016-02-11 05:35:55 +00:00
2016-02-11 05:35:55 +00:00
2015-12-27 07:16:27 +00:00
2016-02-04 11:27:03 +00:00
2015-11-25 12:01:00 +00:00
2016-02-26 04:23:19 +00:00
2016-01-06 22:34:54 +00:00
2015-12-31 06:01:19 +00:00
2015-10-20 13:23:58 +00:00
2015-03-09 15:03:20 +00:00
2015-08-31 18:48:39 +00:00
2016-02-03 01:43:59 +00:00
2016-02-14 22:30:14 +00:00
2016-01-14 21:00:27 +00:00
2016-02-11 17:49:28 +00:00
2016-01-29 19:38:18 +00:00
2015-09-15 11:18:52 +00:00
2016-02-25 05:25:57 +00:00
2015-07-02 21:03:14 +00:00
2015-07-15 19:13:39 +00:00
2016-02-19 11:23:28 +00:00
2016-01-14 21:00:27 +00:00
2015-10-27 06:02:45 +00:00
2015-12-30 02:51:00 +00:00
2015-10-02 13:41:04 +00:00
2016-02-03 15:46:42 +00:00
2016-02-16 11:18:12 +00:00
2016-02-25 05:25:57 +00:00
2016-01-29 19:38:18 +00:00
2016-01-29 19:38:18 +00:00
2016-01-09 12:53:17 +00:00
2016-01-14 21:00:27 +00:00
2016-01-09 12:53:17 +00:00
2016-02-11 17:49:28 +00:00
2014-11-19 07:49:47 +00:00