@@ -109,8 +109,16 @@ struct llvm::yaml::MappingTraits<SettingsImpl>
109
109
110
110
io.mapOptional (" filters" , cfg.filters );
111
111
112
- io.mapOptional (" see-below" , cfg.seeBelow );
113
- io.mapOptional (" implementation-defined" , cfg.implementationDefined );
112
+ // KRYSTIAN FIXME: This should really be done with mapping traits.
113
+ std::vector<std::string> seeBelow;
114
+ io.mapOptional (" see-below" , seeBelow);
115
+ for (std::string_view pattern : seeBelow)
116
+ cfg.seeBelow .emplace_back (pattern);
117
+
118
+ std::vector<std::string> implementationDefined;
119
+ io.mapOptional (" implementation-defined" , implementationDefined);
120
+ for (std::string_view pattern : implementationDefined)
121
+ cfg.implementationDefined .emplace_back (pattern);
114
122
}
115
123
};
116
124
@@ -223,13 +231,9 @@ ConfigImpl(
223
231
224
232
// Parse the filters
225
233
for (std::string_view pattern : settings_.filters .symbols .exclude )
226
- {
227
234
parseSymbolFilter (settings_.symbolFilter , pattern, true );
228
- }
229
235
for (std::string_view pattern : settings_.filters .symbols .include )
230
- {
231
236
parseSymbolFilter (settings_.symbolFilter , pattern, false );
232
- }
233
237
settings_.symbolFilter .finalize (false , false , false );
234
238
}
235
239
0 commit comments