[all-commits] [llvm/llvm-project] 82001e: [clang-format] Disable OuterScope lambda indentati...
Jon Phillips via All-commits
all-commits at lists.llvm.org
Thu Sep 28 12:05:01 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 82001e0d01bc7545b3329866eed767c5fff7dc9e
https://github.com/llvm/llvm-project/commit/82001e0d01bc7545b3329866eed767c5fff7dc9e
Author: Jon Phillips <jphillips at cloudflare.com>
Date: 2023-09-28 (Thu, 28 Sep 2023)
Changed paths:
M clang/docs/ClangFormatStyleOptions.rst
M clang/include/clang/Format/Format.h
M clang/lib/Format/ContinuationIndenter.cpp
M clang/unittests/Format/FormatTest.cpp
Log Message:
-----------
[clang-format] Disable OuterScope lambda indentation behaviour for constructor initializers (#66755)
By default, OuterScope aligns lambdas to the beginning of the current
line. This makes sense for most types of statements within code blocks
but leads to unappealing and misleading indentation for lambdas within
constructor initializers.
More information about the All-commits
mailing list