func (ds DiagnosticSet) Dispose() {
	C.clang_disposeDiagnosticSet(ds.c)
}
Release a CXDiagnosticSet and all of its contained diagnostics.
package clang
import "C"
import "unsafe"
type DiagnosticSet struct {
	c C.CXDiagnosticSet
}
func (ds DiagnosticSet) NumDiagnosticsInSet() uint32 {
	return uint32(C.clang_getNumDiagnosticsInSet(ds.c))
}
func (ds DiagnosticSet) DiagnosticInSet(index uint32) Diagnostic {
	return Diagnostic{C.clang_getDiagnosticInSet(ds.c, C.uint(index))}
}
func LoadDiagnostics(file string) (LoadDiag_Error, string, DiagnosticSet) {
	var error C.enum_CXLoadDiag_Error
	var errorString cxstring
	defer errorString.Dispose()
	c_file := C.CString(file)
	defer C.free(unsafe.Pointer(c_file))
	o := DiagnosticSet{C.clang_loadDiagnostics(c_file, &error, &errorString.c)}
	return LoadDiag_Error(error), errorString.String(), o
}