[PATCH] D146148: Float_t and double_t types shouldn't be modified by #pragma clang fp eval_method

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 24 11:09:53 PDT 2023


rjmccall added a comment.

Okay, so modifying `math.h` to use this attribute is acceptable?  That's great, that's definitely the best outcome for the compiler.

Just a minor request about the diagnostic name, but otherwise LGTM.



================
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:11503
+
+def err_type_definition_cannot_be_modified : Error<
+  "cannot use type '%0' within '#pragma clang fp eval_method'; type is set "
----------------



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

https://reviews.llvm.org/D146148



More information about the cfe-commits mailing list