[PATCH] D152975: [clang-format] Allow break after return keyword

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 21 08:09:36 PDT 2023


MyDeveloperDay added inline comments.


================
Comment at: clang/lib/Format/Format.cpp:1484
   LLVMStyle.PenaltyBreakFirstLessLess = 120;
+  LLVMStyle.PenaltyBreakReturn = 100;
   LLVMStyle.PenaltyBreakString = 1000;
----------------
is 100 the current penalty?


================
Comment at: clang/unittests/Format/FormatTest.cpp:22187
+               "          HereAVeryLongLineThatWillBeFormattedOnMultipleLineAnd"
+               "ShouldNotBeConsiderAsInline;\n"
                "    });",
----------------
the fails the beyonce rule doesn't it, unless you are assuming the test is a bug?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152975/new/

https://reviews.llvm.org/D152975



More information about the cfe-commits mailing list