[clang] [clang-format][NFC] Clean up signatures of some parser functions (PR #66569)

Emilia Kond via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 16 14:14:57 PDT 2023


================
@@ -370,9 +364,9 @@ bool UnwrappedLineParser::parseLevel(const FormatToken *OpeningBrace,
     else if (FormatTok->getType() == TT_MacroBlockEnd)
       kind = tok::r_brace;
 
-    auto ParseDefault = [this, OpeningBrace, NextLevelLBracesType, IfKind,
+    auto ParseDefault = [this, OpeningBrace, InRequiresExpression, IfKind,
                          &IfLBrace, &HasDoWhile, &HasLabel, &StatementCount] {
-      parseStructuralElement(!OpeningBrace, NextLevelLBracesType, IfKind,
+      parseStructuralElement(OpeningBrace, InRequiresExpression, IfKind,
----------------
rymiel wrote:

If `InRequiresExpression` can be determined from just `OpeningBrace`, does it need to be passed down here?

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


More information about the cfe-commits mailing list