コード例 #1
0
ファイル: file.go プロジェクト: zimmski/go-clang
// Name retrieves the complete file and path name of the given file.
func (c File) Name() string {
	cstr := cxstring{C.clang_getFileName(c.c)}
	defer cstr.Dispose()
	return cstr.String()
}
コード例 #2
0
ファイル: file_gen.go プロジェクト: go-clang/v3.7
// Retrieve the complete file and path name of the given file.
func (f File) Name() string {
	o := cxstring{C.clang_getFileName(f.c)}
	defer o.Dispose()

	return o.String()
}