[PATCH] D124033: [NFC] Adding a note about the macro __FLT_EVAL_METHOD__

Zahira Ammarguellat via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 20 14:35:21 PDT 2022


zahiraam added inline comments.


================
Comment at: clang/docs/UsersManual.rst:1610-1618
 The macro ``__FLT_EVAL_METHOD__`` will expand to either the value set from the
 command line option ``ffp-eval-method`` or to the value from the target info
-setting. The ``__FLT_EVAL_METHOD__`` macro cannot expand to the correct
-evaluation method in the presence of a ``#pragma`` which alters the evaluation
-method. An error is issued if ``__FLT_EVAL_METHOD__`` is expanded inside a scope
-modified by ``#pragma clang fp eval_method``.
+setting. The ``__FLT_EVAL_METHOD__`` macro is resolved as a macro
+definition during expansion. When predefined preprocessor macros are dumped,
+``__FLT_EVAL_METHOD__`` will not be listed.
+The ``__FLT_EVAL_METHOD__`` macro cannot expand to the correct evaluation method
+in the presence of a ``#pragma`` which alters the evaluation method. An error is
----------------
aaron.ballman wrote:
> I reworked this a bit more -- does it still seem correct to you?
Yes. Thanks (long sentences :).


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124033/new/

https://reviews.llvm.org/D124033



More information about the cfe-commits mailing list