sammccall added a subscriber: sepavloff.
sammccall added a comment.

this looks reasonable to me, would like to give @mibintc and also @sepavloff a 
chance to chime in.



================
Comment at: clang/include/clang/Basic/LangOptions.h:437
+                                   LangOptions::FPExceptionModeKind EM) {
+    static_assert(LangOptions::FPExceptionModeKind::FPE_Strict <
+                      MaxExceptionValue,
----------------
This assertion seems weird, and it doesn't test much - new enum values are 
typically added at the end.


================
Comment at: clang/include/clang/Basic/LangOptions.h:460
+  // rounding_and_exceptions = MaxExceptionValue * rounding + exceptions.
+  constexpr static unsigned MaxExceptionValue = 3;
+  unsigned rounding_and_exceptions: 4;
----------------
nit: NumExceptionModes ?
(It's not the max value, it's max + 1)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D75443



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to