[PATCH] D121756: [clang-format] Clean up code looking for if statements
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 27 12:28:36 PDT 2022
HazardyKnusperkeks added a comment.
In D121756#3407320 <https://reviews.llvm.org/D121756#3407320>, @owenpan wrote:
> In D121756#3398165 <https://reviews.llvm.org/D121756#3398165>, @sstwcw wrote:
>
>> It turned out this patch does change behavior.
>>
>> - while (
>> - FormatTok->isOneOf(tok::identifier, tok::kw_requires, tok::coloncolon)) {
>> + while (FormatTok->isOneOf(tok::identifier, tok::kw_requires,
>> + tok::coloncolon)) {
>>
>> So what do I do?
>
> IMO, refactoring and cleaning up code should be NFC. You can first add `while`, `switch`, etc (if it makes sense) in one patch and then refactor in another patch (or vice versa). It would be much easier to review.
+1
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121756/new/
https://reviews.llvm.org/D121756
More information about the cfe-commits
mailing list