Fixes https://github.com/llvm/llvm-project/issues/53844.
I believe this regression was caused by not accounting for clang-format directives in https://reviews.llvm.org/D92257.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Format/BreakableToken.cpp | ||
---|---|---|
817–825 | This slowly gets hard to read. Could you maybe split it up? Either in giving the multiple parts their own name. Or to keep the short circuiting have something like: auto AllowsSpaceChange = ...; AllowsSpaceChange = AllowsSpaceChange || ...; AllowsSpaceChange = AllowsSpaceChange || ...; | |
clang/unittests/Format/FormatTestComments.cpp | ||
98 | Why the limit? |
- Split AllowsSpaceChange conditional over multiple variables to enhance readability.
- Remove unnecessary column limit from unittest.
clang/lib/Format/BreakableToken.cpp | ||
---|---|---|
817–825 | I've split the conditional over a couple of smaller boolean conditionals with the intent of enhancing readability. | |
clang/unittests/Format/FormatTestComments.cpp | ||
98 | This was a copy-paste artifact and wasn't intended to be included in the original diff; the column limit has no bearing on this specific test addition. |
Great! Thanks a lot!
Do you have commit rights or you want someone to land it for you?
For the latter, we'll need your name and email for the commit attribution.
I don’t have commit rights; if someone could commit on my behalf that’d be great.
- Luis Penagos
- luis@penagos.co
Thanks!
While here, please change auto to bool.