[PATCH] GNU-style attributes and lambdas
Aaron Ballman
aaron at aaronballman.com
Tue Mar 11 16:19:47 PDT 2014
GCC allows GNU-style attributes to be applied to a lambda expression,
and such attributes can appertain to the underlying declarations
instead of the types. For instance:
void f2() {
[](const char *, ...) __attribute__((sentinel)) { }("%s", 1);
}
In GCC, these attributes must appear before the mutable or exception
specifier for the lambda (instead of after, like with C++11-style
attributes), and this patch is implemented to match that expectation.
~Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LambdaGNUAttr.patch
Type: application/octet-stream
Size: 3419 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140311/df5c8f91/attachment.obj>
More information about the cfe-commits
mailing list