diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-01-20 18:42:10 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-01-20 18:42:10 +0000 |
commit | 4da7eb6bf75ed9b1dbf9232fbb8f6cd16caa5ef6 (patch) | |
tree | aed15d533e7dac5b30e1d7d06fd50f697abddbbf /docs/InternalsManual.rst | |
parent | d3760b55954d6a5eb62433d21f60e264a6234ef5 (diff) |
Adding a bit of documentation that was missed with r198883 (when ParseArgumentsAsUnevaluated was added).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199679 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/InternalsManual.rst')
-rw-r--r-- | docs/InternalsManual.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/InternalsManual.rst b/docs/InternalsManual.rst index eb19614e55..96d43ab57d 100644 --- a/docs/InternalsManual.rst +++ b/docs/InternalsManual.rst @@ -1718,6 +1718,11 @@ duplicated. However, if an attribute can be duplicated during this merging 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. |