コード例 #1
0
ファイル: diagnostics.go プロジェクト: zimmski/go-clang
/**
 * \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()
}
コード例 #2
0
ファイル: diagnostic_gen.go プロジェクト: go-clang/v3.4
// 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()
}