Unfortunately I discovered that I do need to be able to go full round-trip in swift-lldb.
Also, this moves numSDKs out of the actual enum, as to not mess with the switch-cases-covered warning.
Paths
| Differential D79603
Add an API to construct an XcodeSDK from an SDK type. ClosedPublic Authored by aprantl on May 7 2020, 3:02 PM.
Details Summary Unfortunately I discovered that I do need to be able to go full round-trip in swift-lldb. Also, this moves numSDKs out of the actual enum, as to not mess with the switch-cases-covered warning.
Diff Detail Event Timeline
Comment Actions Remove redundant static_assert. It was only needed in the other function because that one used cascading ifs. This revision is now accepted and ready to land.May 8 2020, 10:44 AM Closed by commit rGae920a81ffa3: Add an API to construct an XcodeSDK from an SDK type. (authored by aprantl). · Explain WhyMay 8 2020, 11:15 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 262771 lldb/include/lldb/Utility/XcodeSDK.h
lldb/source/Utility/XcodeSDK.cpp
lldb/unittests/Utility/XcodeSDKTest.cpp
|
I'd expect -Wcovered-switch to break the build if a new case gets added and this list isn't updated. Wdyt of dropping numSDKTypes and using an llvm_unreachable here instead?