[clang] [clang-format] Disable OuterScope lambda indentation behaviour for constructor initializers (PR #66755)

via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 20 00:10:25 PDT 2023


================
@@ -22537,10 +22537,12 @@ TEST_F(FormatTest, FormatsLambdas) {
                "  }\n"
                "}",
                Style);
-  verifyFormat("std::sort(v.begin(), v.end(),\n"
-               "          [](const auto &foo, const auto &bar) {\n"
-               "  return foo.baz < bar.baz;\n"
-               "});",
+  verifyFormat("void test() {\n"
----------------
mydeveloperday wrote:

beyonce rule please don't change a test to fit your code change, or we get regressions... was the test wrong before?

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


More information about the cfe-commits mailing list