[cfe-commits] [Patch][Review] __has_feature(__feature__)

Jonathan Sauer jonathan.sauer at gmx.de
Fri Feb 24 11:47:24 PST 2012


Hello,

following the discussion in cfe-dev[*], I decided to put my money where my mouth is and have attached a patch
that makes it possible to use __has_feature(__feature__) in place of __has_feature(feature) to protect the
feature name in case the user defines a macro with the same name.

I modeled the patch after the similar handling of __attribute__ names.


Jonathan

[*] <http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-February/019943.html>ff.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: underscore_features.diff
Type: application/octet-stream
Size: 2280 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120224/db1f38a7/attachment.obj>
-------------- next part --------------




More information about the cfe-commits mailing list