[all-commits] [llvm/llvm-project] bbae59: [clang-format] Finalize children after formatting ...
Owen Pan via All-commits
all-commits at lists.llvm.org
Wed Nov 29 12:56:21 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bbae59ae71c73e26809d4ab7da1a80239ebd9381
https://github.com/llvm/llvm-project/commit/bbae59ae71c73e26809d4ab7da1a80239ebd9381
Author: Owen Pan <owenpiano at gmail.com>
Date: 2023-11-29 (Wed, 29 Nov 2023)
Changed paths:
M clang/lib/Format/UnwrappedLineFormatter.cpp
M clang/unittests/Format/FormatTest.cpp
Log Message:
-----------
[clang-format] Finalize children after formatting them (#73753)
This would also fix the overlapping replacements below:
```
$ clang-format
a(
#else
#endif
) = []() {
)}
The new replacement overlaps with an existing replacement.
New replacement: <stdin>: 38:+7:"
"
Existing replacement: <stdin>: 38:+7:" "
```
Fixed #73487.
More information about the All-commits
mailing list