Exemple #1
0
/**
 * \brief Retrieve the text of the given diagnostic.
 */
func (d Diagnostic) Spelling() string {
	cx := cxstring{C.clang_getDiagnosticSpelling(d.c)}
	defer cx.Dispose()
	return cx.String()
}
Exemple #2
0
// Retrieve the text of the given diagnostic.
func (d Diagnostic) Spelling() string {
	o := cxstring{C.clang_getDiagnosticSpelling(d.c)}
	defer o.Dispose()

	return o.String()
}