This is an archive of the discontinued LLVM Phabricator instance.

Fix type signature for CMIUtilString::IsAllValidAlphaAndNumeric. This should take a "const char*" not a "char &".
ClosedPublic

Authored by brucem on Jul 2 2015, 1:23 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

brucem updated this revision to Diff 28973.Jul 2 2015, 1:23 PM
brucem retitled this revision from to Fix type signature for CMIUtilString::IsAllValidAlphaAndNumeric. This should take a "const char*" not a "char &"..
brucem updated this object.
brucem added reviewers: ki.stfu, abidh, domipheus.
brucem added a subscriber: lldb-commits.
ki.stfu requested changes to this revision.Jul 2 2015, 8:59 PM
ki.stfu edited edge metadata.

Looks good apart from one renaming.

tools/lldb-mi/MIUtilString.cpp
478 ↗(On Diff #28973)

ditto

483 ↗(On Diff #28973)

ditto

tools/lldb-mi/MIUtilString.h
38 ↗(On Diff #28973)

In vrText, "r" means reference. Rename it to vpText.

This revision now requires changes to proceed.Jul 2 2015, 8:59 PM
brucem updated this revision to Diff 28993.Jul 2 2015, 10:24 PM
brucem edited edge metadata.

Update per review comments.

Updating D10906: Fix type signature for CMIUtilString::IsAllValidAlphaAndNumeric.

This should take a "const char*" not a "char &".

ki.stfu accepted this revision.Jul 2 2015, 10:42 PM
ki.stfu edited edge metadata.

lgtm

tools/lldb-mi/MIUtilString.cpp
489–491 ↗(On Diff #28993)

a bit weird. may be the following is better?

for (MIuint i = 0; i < len; ++i)
{
        const MIchar c = vpText[i];
[...]
This revision is now accepted and ready to land.Jul 2 2015, 10:42 PM
This revision was automatically updated to reflect the committed changes.