mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Make Feature a struct enum so we can put methods on it.
Just noticed this as I was looking at making other changes.
This commit is contained in:
committed by
Anthony Latsis
parent
6eaa07a880
commit
3ff9463957
@@ -20,9 +20,8 @@ FeatureParsingTest::FeatureParsingTest() : ArgParsingTest() {
|
||||
this->langMode = defaultLangMode;
|
||||
}
|
||||
|
||||
FeatureWrapper::FeatureWrapper(Feature id)
|
||||
: id(id), name(getFeatureName(id).data()) {
|
||||
auto langMode = getFeatureLanguageVersion(id);
|
||||
FeatureWrapper::FeatureWrapper(Feature id) : id(id), name(id.getName().data()) {
|
||||
auto langMode = id.getLanguageVersion();
|
||||
if (langMode) {
|
||||
this->langMode = std::to_string(*langMode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user