[clang-format] Fix bugs with "LambdaBodyIndentation: OuterScope"
authorJon Phillips <jonap2811@gmail.com>
Wed, 5 Apr 2023 21:28:56 +0000 (14:28 -0700)
committerOwen Pan <owenpiano@gmail.com>
Wed, 5 Apr 2023 21:38:38 +0000 (14:38 -0700)
commit5c614bd88f1252927ca1f9d9f8e802ef5e1eebe2
tree13d80d70fa1197b3adc81dcd724fb666b9a3d7e9
parent4151477021170d8937f8fc820187d5934eb93c7d
[clang-format] Fix bugs with "LambdaBodyIndentation: OuterScope"

The previous implementation of the option corrupted the parenthesis
state stack. (See https://reviews.llvm.org/D102706.)

Fixes #55708.
Fixes #53212.
Fixes #52846.
Fixes #59954.

Differential Revision: https://reviews.llvm.org/D146042
clang/docs/ClangFormatStyleOptions.rst
clang/docs/ReleaseNotes.rst
clang/include/clang/Format/Format.h
clang/lib/Format/ContinuationIndenter.cpp
clang/lib/Format/UnwrappedLineFormatter.cpp
clang/unittests/Format/FormatTest.cpp