[cfe-commits] r151445 - in /cfe/trunk: docs/LanguageExtensions.html lib/Lex/PPMacroExpansion.cpp lib/Sema/AttributeList.cpp test/Lexer/has_extension.c test/Preprocessor/feature_tests.c

Michel Morin mimomorin at gmail.com
Wed Feb 29 04:27:21 PST 2012


Thanks for the nice work, Jonathan!

> +<p>The feature name or extension name can also be specified with a preceding and
> +following <code>__</code> (double underscore) to avoid interference from a macro
> +with the same name. For instance, <code>__always_inline__</code> can be used
> +instead of <code>always_inline</code>.</p>

`always_inline` is an attribute name, and so it would be better
to replace it with a feature name such as `cxx_rvalue_references`.

A patch attached. (This patch also adds the description on
attribute names with double underscores.)


Michel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: doc_fix.patch
Type: application/octet-stream
Size: 1327 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120229/fd34073f/attachment.obj>


More information about the cfe-commits mailing list