r199679 - Adding a bit of documentation that was missed with r198883 (when ParseArgumentsAsUnevaluated was added).

Aaron Ballman aaron at aaronballman.com
Mon Jan 20 10:42:10 PST 2014


Author: aaronballman
Date: Mon Jan 20 12:42:10 2014
New Revision: 199679

URL: http://llvm.org/viewvc/llvm-project?rev=199679&view=rev
Log:
Adding a bit of documentation that was missed with r198883 (when ParseArgumentsAsUnevaluated was added).

Modified:
    cfe/trunk/docs/InternalsManual.rst

Modified: cfe/trunk/docs/InternalsManual.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/InternalsManual.rst?rev=199679&r1=199678&r2=199679&view=diff
==============================================================================
--- cfe/trunk/docs/InternalsManual.rst (original)
+++ cfe/trunk/docs/InternalsManual.rst Mon Jan 20 12:42:10 2014
@@ -1718,6 +1718,11 @@ duplicated. However, if an attribute can
 stage, set ``DuplicatesAllowedWhileMerging`` to ``1``, and the attribute will 
 be merged.
 
+By default, attribute arguments are parsed in an evaluated context. If the 
+arguments for an attribute should be parsed in an unevaluated context (akin to 
+the way the argument to a ``sizeof`` expression is parsed), you can set 
+``ParseArgumentsAsUnevaluated`` to ``1``.
+
 If additional functionality is desired for the semantic form of the attribute, 
 the ``AdditionalMembers`` field specifies code to be copied verbatim into the 
 semantic attribute class object.





More information about the cfe-commits mailing list