From b39a9b8b0cc7eceea47bcd58738c07128e76ba7f 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). llvm-svn: 199679 --- clang/docs/InternalsManual.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clang/docs/InternalsManual.rst b/clang/docs/InternalsManual.rst index eb19614e55d0..96d43ab57dcc 100644 --- a/clang/docs/InternalsManual.rst +++ b/clang/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.