[clang] [clang] Macro for constant rounding mode (PR #92699)

Serge Pavlov via cfe-commits cfe-commits at lists.llvm.org
Fri May 24 11:42:57 PDT 2024


================
@@ -965,6 +965,16 @@ void Preprocessor::Lex(Token &Result) {
   LastTokenWasAt = Result.is(tok::at);
   --LexLevel;
 
+  if (Result.is(tok::l_brace)) {
+    CurlyBraceLevel++;
+  } else if (Result.is(tok::r_brace)) {
+    if (!RoundingPragmas.empty() &&
----------------
spavloff wrote:

A good idea, thank you.

https://github.com/llvm/llvm-project/pull/92699


More information about the cfe-commits mailing list