Skip to content

Commit eedefbd

Browse files
committed
Filter out some very problematic types for now (non-templated inheriting from templates, weird)
1 parent 958dd1e commit eedefbd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/generator/Main.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,16 @@ List<Entry> Preprocess (XmlNode parent)
226226

227227
List<Entry> PreprocessClasses (List<Entry> entries)
228228
{
229+
List<string> filter = new List<string>() {
230+
"QItemSelection"
231+
};
232+
233+
229234
List<Entry> removed = new List<Entry> (entries.Where (o => (o.type == "Class" || o.type == "Struct") && (o.IsTrue ("incomplete") || !o.HasValue ("name") || (Entry.idlist[o["file"]].name.StartsWith ("/")))));
235+
removed.AddRange (entries.Where (o => filter.Contains (o.name)).ToList ());
230236
entries.RemoveAll (o => (o.type == "Class" || o.type == "Struct") && (o.IsTrue ("incomplete") || !o.HasValue ("name") || (Entry.idlist[o["file"]].name.StartsWith ("/"))));
237+
entries.RemoveAll (o => filter.Contains (o.name));
238+
231239

232240
foreach (Entry clas in entries.Where (o => o.type == "Class" || o.type == "Struct")) {
233241
clas.computedName = clas.name;

0 commit comments

Comments
 (0)