Page MenuHomePhabricator

Add SBType::IsScopedEnumerationType method
ClosedPublic

Authored by werat on Dec 22 2020, 4:45 AM.

Details

Summary

Add a method to check if the type is a scoped enumeration (i.e. "enum class/struct").

Diff Detail

Event Timeline

werat requested review of this revision.Dec 22 2020, 4:45 AM
werat created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 22 2020, 4:45 AM
werat added a subscriber: jarin.
JDevlieghere added inline comments.Dec 22 2020, 9:31 AM
lldb/source/API/SBType.cpp
275

Same comment as in D93696: you need to register your new method.

werat updated this revision to Diff 313378.Dec 22 2020, 9:56 AM

Register the new method using lldb-instr.

werat marked an inline comment as done.Dec 22 2020, 9:57 AM
werat added inline comments.
lldb/source/API/SBType.cpp
275

Thanks for pointing this out, I totally missed it.

This revision is now accepted and ready to land.Dec 22 2020, 9:58 AM
This revision was landed with ongoing or failed builds.Dec 22 2020, 10:08 AM
This revision was automatically updated to reflect the committed changes.