This is an archive of the discontinued LLVM Phabricator instance.

[ADT] [NFC] Introduce isLower and isUpper helpers.
ClosedPublic

Authored by jacek on Aug 1 2023, 7:20 AM.

Diff Detail

Event Timeline

jacek created this revision.Aug 1 2023, 7:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 1 2023, 7:20 AM
jacek requested review of this revision.Aug 1 2023, 7:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 1 2023, 7:20 AM
MaskRay accepted this revision.Aug 1 2023, 9:07 AM

We may add a unittest to unittests/ADT/StringExtrasTest.cpp, but this may not be worth the trouble as isLower/etc are used by others we already provide (e.g. toUpper).

This revision is now accepted and ready to land.Aug 1 2023, 9:07 AM
jhenderson accepted this revision.Aug 1 2023, 11:23 AM

LGTM. I'd add the unit test, but I'm not going to push strongly for it.

llvm/include/llvm/ADT/StringExtras.h
104
This revision was automatically updated to reflect the committed changes.
jacek added a comment.Aug 1 2023, 12:27 PM

I pushed with tests, thanks.