Commits

Anonymous committed bf2072f

fixup dtor names

  • Participants
  • Parent commits b78529a

Comments (0)

Files changed (1)

File pkg/cxxtypes/gccxml/xmlstructs.go

 		}
 	}
 
+	// dtors
+	for _, v := range x.Destructors {
+		if len(v.name()) > 1 && string(v.name()[0]) != "~" {
+			v.set_name("~"+v.name())
+		}
+		if len(v.name()) >= 3 && string(v.name()[0:3]) != "_ZT" {
+			v.set_name(addTemplateToName(v.name(), v.demangled()))
+			patchTemplateName(v)
+		}
+	}
+
 	// methods
 	for _, v := range x.Methods {
 		if len(v.name()) >= 3 && string(v.name()[0:3]) != "_ZT" {