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

Abdul Mohammad via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 6 21:04:58 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:

Will fix this.

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


More information about the cfe-commits mailing list