Rename parameters and local variables to start with an uppercase characters.
This is not 100% NFC, since it adds an easy/fast path for 1 byte printable characters and changes how much text is converted to UTF32.
Differential D150843
[clang][Diagnostics] Refactor printableTextForNextCharacter tbaeder on May 17 2023, 10:55 PM. Authored by
Details Rename parameters and local variables to start with an uppercase characters. This is not 100% NFC, since it adds an easy/fast path for 1 byte printable characters and changes how much text is converted to UTF32.
Diff Detail
Event Timeline
Comment Actions This generally looks good to me but i have a couple remarks
Comment Actions Splitting this into two patches (one to do the renames, another to perform the other changes) would simplify review.
Comment Actions Give some time for @tahonermann to have an opportunity to review again, but otherwise this looks good to me. Thanks!
Comment Actions The changes look good to me. I suggested two minor edits to align with parameter name changes. The summary states that the changes are not quite NFC. In that case, we would ideally have a test that demonstrates the changed behavior. Would adding such a test be challenging?
Comment Actions They are NFC, it's just not 100% only a refactoring, since it adds the new ASCII-only case. Comment Actions
Ok, thanks. Changes look good. I noticed one comment that appears to be incorrect; please just remove it when committing the changes.
|