[clang] [clang-format] Allow line breaking with PointerAlignment configured (PR #164686)

via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 23 06:05:58 PDT 2025


================
@@ -8644,6 +8644,38 @@ TEST_F(FormatTest, BreaksFunctionDeclarations) {
                "                 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) {}",
                Style);
 
+  Style.ColumnLimit = 70;
+  verifyFormat(
----------------
sstwcw wrote:

The first one seems unnecessary.  Now it is gone.  The other 2 are there to ensure that the line should break whether the star is followed by a name or a volatile const restrict qualifier.

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


More information about the cfe-commits mailing list