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.
Differential D79603
Add an API to construct an XcodeSDK from an SDK type. aprantl on May 7 2020, 3:02 PM. Authored by
Details 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.
|
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?