From 4da7eb6bf75ed9b1dbf9232fbb8f6cd16caa5ef6 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Mon, 20 Jan 2014 18:42:10 +0000 Subject: [PATCH] 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 --- docs/InternalsManual.rst | 5 +++++ 1 file changed, 5 insertions(+) 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. -- 2.40.0