================ @@ -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() && ---------------- efriedma-quic wrote:
Maybe we can move the `!RoundingPragmas.empty()` outside the if statement, so we can skip a little more of the code if the user isn't using any pragmas? I mean, it probably doesn't make a big difference, but Lex() is performance-sensitive. https://github.com/llvm/llvm-project/pull/92699 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits