Commits

Sebastien Binet  committed cd8c66e

dont forget to also generate identifiers for ctors, cnverters and dtors

  • Participants
  • Parent commits d247155

Comments (0)

Files changed (1)

File pkg/cxxtypes/gccxml/xmlstructs.go

 		//fmt.Printf("%v\n", t)
 	}
 
+	for _, v := range x.Constructors {
+		//fmt.Printf("\n%s... (%s) [%v]\n", v.name(), v.id(), genTypeName(v.id(), gtnCfg{}))
+		gen_id_from_gccxml(v)
+		//fmt.Printf("%v\n", t)
+	}
+
+	for _, v := range x.Converters {
+		//fmt.Printf("\n%s... (%s) [%v]\n", v.name(), v.id(), genTypeName(v.id(), gtnCfg{}))
+		gen_id_from_gccxml(v)
+		//fmt.Printf("%v\n", t)
+	}
+
 	for _, v := range x.CvQualifiedTypes {
 		//fmt.Printf("\n%s... (%s) [%v]\n", v.name(), v.id(), genTypeName(v.id(), gtnCfg{}))
 		gen_id_from_gccxml(v)
 		//fmt.Printf("%v\n", t)
 	}
 
+	for _, v := range x.Destructors {
+		//fmt.Printf("\n%s... (%s) [%v]\n", v.name(), v.id(), genTypeName(v.id(), gtnCfg{}))
+		gen_id_from_gccxml(v)
+		//fmt.Printf("%v\n", t)
+	}
+
 	for _, v := range x.Enumerations {
 		//fmt.Printf("\n%s... (%s) [%v]\n", v.name(), v.id(), genTypeName(v.id(), gtnCfg{}))
 		gen_id_from_gccxml(v)
 		scope := getCxxtypesScope(t)
 		params := gen_args(t.Arguments)
 		ret_type := "void" //FIXME ?
-		//ret_type := cxxtypes.IdByName("void").(cxxtypes.Type) //FIXME ?
 		ct = cxxtypes.NewFunction(
 			scoped_name,
 			qual,