[clang] [clang-format] Fix formatting with consecutive requires clauses (PR #220792)

Abdul Mohammad via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 3 21:57:28 PDT 2026


================
@@ -3657,6 +3671,8 @@ class ExpressionParser {
   const AdditionalKeywords &Keywords;
   const AnnotatedLine &Line;
   FormatToken *Current;
+  // The first non-comment token after the requires clause being parsed.
+  const FormatToken *RequiresClauseLimit = nullptr;
----------------
abdulm5 wrote:

Done in 0cd1d34c8a2a. The past-the-end pointer is now named RequiresClauseEnd.

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


More information about the cfe-commits mailing list