This is an archive of the discontinued LLVM Phabricator instance.

[Demangle][Rust] Parse char constants
ClosedPublic

Authored by tmiasko on May 14 2021, 12:42 PM.

Diff Detail

Event Timeline

tmiasko created this revision.May 14 2021, 12:42 PM
tmiasko requested review of this revision.May 14 2021, 12:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 14 2021, 12:42 PM
dblaikie accepted this revision.May 14 2021, 5:45 PM

Looks good - might need a test case for the error path if it's not already exercised by one of the other invalid tests (in which case does that invalid test changing to test this error path stop catching some error path that needs a new test instead?)

llvm/lib/Demangle/RustDemangle.cpp
469–472

Is this error path tested?

This revision is now accepted and ready to land.May 14 2021, 5:45 PM
tmiasko updated this revision to Diff 345614.May 15 2021, 1:29 AM

Add a test case for error code path

tmiasko marked an inline comment as done.May 15 2021, 1:31 AM
tmiasko added inline comments.
llvm/lib/Demangle/RustDemangle.cpp
469–472

I added a test case covering this, and used slightly tighter size bound on the number of digits.

This revision was landed with ongoing or failed builds.May 15 2021, 2:25 AM
This revision was automatically updated to reflect the committed changes.
tmiasko marked an inline comment as done.